In plenty of countries this is a reality already. Sensors are placed anywhere from a few meters to hundreds of meters ahead of the actual lights to determine the flow of traffic, there are 'green waves' which you can synchronize with to guarantee uninterrupted passage (both for congestion control and to save fuel) and there are adjustments made based on the expected flow from different routes depending on the time of…
You don't need to place sensors anymore, a simple camera can do it.