fixed the sensor swap