An automatic dark sensor can be made using a PNP transistor(BC557).
As the ambient light falling on LDR decreases, the LED glows. The sensitivity of the circuit can be adjusted using the variable resistor VR1.
If this circuit does not work with 10K, use 100K.
EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access
Free Circuit Design: Schematic - Simulation - PCB Layout - Gerber Viewer
JLCPCB Prototype & Small-batch PCB: Only $2 for 10pcs 10×10cm PCBs, 24 hours Quick Turn, DHL Delivery in 3 Days