Photosensor for motion detection, Proximity sensor for safety systems