Proximity sensor in material handling, Photosensor for robotics