Working Principle:
1. During the day, the solar panel generates electricity and charges the battery.
2. The LDR(I used a switch in place of LDR) senses the ambient light level and keeps the LED light off during the day.
3. At dusk, the LDR detects the decrease in ambient light and sends a signal to the charge controller.
4. The charge controller then connects the battery to the LED light, turning it on.
5. The LED light remains on throughout the night, using the stored energy from the battery.
6. At dawn, the LDR senses the increase in ambient light and sends a signal to the charge controller to turn off the LED light.