A method of detecting an error in an image scanning device that obtains image data upon scanning a document by using a light beam radiated from a lamp, the method comprising:
- in a setting operation, obtaining initial reference values of a light quantity of the lamp and storing the obtained initial reference values in a memory;
- in a storing operation, measuring the light quantity of the lamp during use of the image scanning device, obtaining measured values for comparing with the initial reference values, and storing the measured values in the memory;
- and
- in a comparing/determining operation, determining whether to check a presence of error in the lamp or to check a presence of contaminant in an optical path by comparing the initial reference values with the measured values.