Fingerprint scanners work by capturing an image of a fingerprint using either an optical sensor like in digital cameras or a capacitive sensor using electrical current. The scanner then compares the captured fingerprint pattern to stored fingerprint images to determine if there is a match. Capacitive scanners have an advantage over optical scanners in that they require the actual fingerprint ridges and valleys rather than just a light/dark pattern, making them harder to fool.