Proximity sensor and proximity hub are gadgets that work in unison to help prevent collisions, by alerting of proximity of obstacles in the way of a train . Their purpose is primarily to make shunting easier and improve safety.