Do you know how traffic lights work...

I’m glad I live in the boonies where there is only 1 traffic light…

But I definately know some are run by the censors because at night when I take county rd. home, there is one light at goodrich, and right as you pull up and stop it turns green…every time…