Proximity sensor in manufacturing, Photosensor in automation, Proximity sensor technology