Diffuse sensor with background suppression, Optical sensors, switching sensors