Proximity sensor for safety systems, Photosensor for motion detection