Proximity sensor for object detection, Photosensor for motion detection