Question: what are the camera on top of traffic lights for?
Answer: Cameras mounted on top of traffic lights are sensors to control traffic light timing, according to the Department of Transportation. They replace "loop" sensors, which are buried in the road at intersections.