Optical sensors, Diffuse sensor with background suppression, switching sensors