It is a device to meter the train speed and transmit to the dashboard to inform drivers to speed up or reduce the train speed.

Speed Meter