With an op amp with FET, this 1977 circuit uses an LDR as a sensor and drives a relay. The relay must be in accordance with the supply voltage.