How do Vending Machines Read Money?

Vending machines read coins according to their individual characteristics, mainly their thickness, diameter, and the ridges on their edges. Paper money is scanned using a magnetic scanner that looks for the magnetic ink that is unique to each denomination, or by using an ultraviolet light that scans for the fluorescent paint marking s that are placed on different denominations.