Predictor
A grade crossing predictor is an electronic device which is connected to the rails of a railroad track, and activates the crossing's warning devices (lights, bells, gates, etc.) at a consistent interval prior to the arrival of a train at a grade crossing.
Many states in the US are now requiring the use of this type of equipment at all newly-constructed grade crossings.
Read more about this topic: Grade Crossing Predictor