This a automatic light sensor for LED Lamp. Here I use VR to replace the LDR.
You can change the VR value to simulate the LDR that is exposed to light or not.
The fact is that the C & L component is output after the transistor is optional, it can be added or not.