Fixed roundoff bug in wall sensor.