Automatic Night Light Circuit

Below is a schematic of two circuits that uses a photocell sensor to detect light and NPN transistor (2n2222) to turn on and off the LED. Its an automatic night light.

night light circuit transistor schematic

DSC02226 copy

Both LED are on because the location the light is dimmed.


I search for so long on how to make the transistor work as a switch and after long search I found two links that showed correct and simple schematics.