A photodiode converts light to an electric current.
A photodiode creates a current proportional to illuminance when light falls on it. We distinguish between visible light and infrared (IR) photodiodes. A phototransistor integrates a transistor with the diode to increase sensitivity.