Interfacing to the Photosensor