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