This simple circuit switches an LED on when the lights go out with just five parts — a battery, phototransistor, resistor, LED, and transistor.