A phototransistor is a bipolar transistor encased in a transparent case so that light can reach the base–collector junction. The phototransistor is similar a photodiode, having higher sensitivity to light, because electrons that are generated by photons in the base–collector junction are injected into the base, and this photodiode current is amplified by the transistor's current gain. Phototransistors also have significantly longer response times. They are used inside optical couplers, with an infrared light emitting diode.