Miniature photoelectric sensor with a sensing range of 2 mm to 120 mm, suitable for various detection tasks.