Industrial Optical Sensor and Switch