Compact, high-accuracy photoelectric proximity sensor with change-over contacts and light switching mode.