Proximity sensor for safety systems, Photosensor for consumer electronics