switching sensors, Optical sensors