How to build a light sensor using an LDR and a transistor
This is a simple light/dark sensor circuit built on a breadboard. This project is suitable for electronics beginners.
The LED connected to the transistor stays on until the light falling on the photoresistor is blocked.