Photosensor for quality control, Proximity sensor technology