The light sensor circuit shows the application of photo diode to detect the presence of light. This light sensor can be used as an intermediate circuit in various applications to detect the presence or absence of light. The sensitivity of the sensor can be adjusted using the preset. A photo diode , used as a photo detector, generates current in the circuit when light incidents on it. This circuit uses the photo diode in reverse bias mode with resistor R1(10k). This resistor does not allow too much current to flow through the photo diode in case a large amount of light falls on the detector. Initially when no light falls on the photo diode, it results in high potential at the inverting input of a comparator (pin6) of LM339. When light falls on the photo diode, it allows current to flow through the diode, and thus drops the voltage across it. The non-inverting input (pin7) is connected to a variable resistor VR2 (preset) which is used to set the reference voltage of the compar...