Reflex sensors check objects for presence, check stack heights or perform counting tasks. They are used when objects need to be detected without a defined background. For this purpose, they use red light or infrared light according to the energy principle.