Handle Reversing when Train is on Top of Sensor