Compact photoelectric sensors with background suppression, suitable for a wide range of detection tasks.