Photosensor for quality control, Proximity sensor for object detection, Proximity sensor technology