High-accuracy photoelectric sensor with response time < 0.5 ms and switching frequency up to 1,000 Hz.