Self-Contained Photoelectric Sensors