A method for increasing signal to noise ratio is disclosed. The method can automatically
detect saturation output voltage of the photosensors via adjusting exposure time
or illumination intensity so as to obtain optimum output voltage of the photosensors
as well as high signal to noise ratio that can generate high quality images.