It can be a manual method, or automated, using traffic sensors and photocells. The second option will make it possible to consume electricity much more economically.