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.