Relay Circuit Detects Light Change
Configured with capacitive coupling (by inserting a small cap between photo-transistor and bipolar transistor), this relay circuit will respond only to rapid changes in light while ignoring normal gradual changes in ambient light. Rapid changes can be produced by light interruption or turning on/off lamps, while gradual light changes can be produced by clouds or sunrise. Here is the schematic diagram of the circuit: