How the street lights know when to change?

Question is pretty straight forward
10 answers 10