For building a smart light sensor, you’ll need a phototransistor.
For building a smart light sensor, you’ll need a phototransistor. This component functions as a switch, allowing current to flow only in the presence of light, making it an ideal sensor to determine if house lights are on.