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

Inductor

Thermistor

Comparator

Capacitor