added left and right limits (from the sensor input)