Fingerprint scanners work by collecting a fingerprint sample and comparing it to samples on record. Optical scanners use an array of light-sensitive sensors to generate an image of ridges and valleys, while capacitive scanners use an array of tiny cells with conductor plates to detect ridges and valleys. Scanner systems then analyze fingerprints by measuring the relative positions of minutiae like ridge endings and bifurcations, rather than directly overlaying images, to determine matches despite potential smudging differences between images.