Improve logic of sensors. Add additional backwards sensor.