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