Optical sensors are used in industry, more precisely in factory automation, to detect objects and their characteristics using light as a medium. They are triggered, for example, when the light is interrupted or the intensity of the light has changed. They operate according to certain basic principles: diffuse sensors (with and without background suppression), retro-reflective sensors, colour sensors, distance sensors and fork light barriers.