Fingerprint scanners work by using either optical or capacitive sensors to generate an image of a fingerprint's unique ridge and valley patterns. The scanner system then uses complex algorithms to analyze minutiae points within the patterns and compare them to stored fingerprints, looking for a sufficient number of matching points to verify a person's identity.