Photosensor for consumer electronics, Proximity sensor for safety systems