Since fingers can almost never be placed twice on exactly the same location on fingerprint sensor 130, and fingerprints change slightly due to expansion and contraction of the skin induced by changes in temperature, finger pressure on the sensor, humidity and other factors, template comparison module 208 compensates for these variations.