Compact, high-performance photoelectric sensor with a visible red light source and adjustable sensing range.