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