A method of calibrating a sensor such as a photodetector, and device
capable of employing that method, are disclosed. The method includes
shining light upon a photosensitive device of the photodetector,
receiving a first signal from an operator, and increasing a gain of the
photodetector. The method also includes discontinuing the shining of the
light upon the photosensitive device after the gain has been increased,
receiving a second signal from an operator, and decreasing the gain so
that the gain is not excessive.