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