An off-the-shelf kit and about two hours are all you need.
A resistor in the cloud is worth two in the hand.
Optical sensors are a broad class of device for detecting light intensity. This can be just a simple component for notifying when ambient light levels rise above or fall below a prescribed level, or a ...