Automatic function of street light can be done by the use of:

Inductor

Comparator

Thermistor

Capacitor