Are you talking about the green and red light at the entrance ramp to a expressway? The are used to control the flow of traffic during rush hour.
You can run those until a cop stops you

, they don't have a camera as far as I know. Some have the white strobe light just to get your attention.