the sensor being an optical sensor