Compact photoelectric sensor with background suppression and infrared light detection. Suitable for industrial applications.