Photosensor in automation, Proximity sensor technology