Proximity sensor for industrial automation, Photosensor for motion detection, Proximity sensor for object detection