Miniature photoelectric proximity sensor with background suppression, suitable for various industrial applications.