Photoelectric proximity sensor with background suppression, suitable for challenging detection tasks.