Today's traffic lights can be controlled by anything from standard traffic control computers to highly advanced AI-driven computer systems that are so "smart" they can predict what's going to happen ...
Traffic lights aren't always on a timer. Some can detect cars, adapt to traffic, and change when the road gets busy.