Ninhydrin (2,2-Dihydroxyindane-1,3-dione) is a chemical used to detect ammonia or primary and secondary amines. Ninhydrin is most commonly used to detect fingerprints, as the terminal amines of lysine residues in peptides and proteins sloughed off in fingerprints react with ninhydrin.