I am trying to build a simple circuit to switch on and off my garden lights according to the brightness level. More to the point, I'd like the lights to turn on when it's dark and off in the morning.
The solution I've come up with is the following, but somehow it is not working properly.
I use a 12V battery, in conjunction with a 12V relay switch, a 12V 4.5W LED lamp (in the picture it is shown as a single LED) and a photocell.
According to the specs, the resistance of the photocell should be 10K Ohms during the day and around 600K Ohms at night. Below are the datasheets
Photocell (Photoresistor) https://learn.adafruit.com/downloads/pdf/photocells.pdf
Is the circuit ok? What am I doing wrong? Thank you