Here’s a quick project for nightlight use: an LDR controlled relay.
Powered from 12v DC, this circuit uses an LM311 comparator to switch the relay according to the sensitivity set by the potentiometer.
Eagle files can be downloaded below.
[download id=”5577″]