Miniature photoelectric proximity sensor with background suppression, adjustable sensing range, and reliable object detection.