Treadle

A Mechanical or electrically operated device to detect the presence or
passage of a train at a specific position.