Photosensor for security systems, Proximity sensor technology