Traffic lights are one of the most important components on the roads. Apart from managing the smooth flow of traffic, the traffic lights also ensure the safety of vehicles as well as the safety of pedestrians.