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