One common method is the use of optical sensors to scan the bill for specific security features, such as watermarks, security threads, and color-shifting inks. The machines may also use magnetic and infrared sensors to detect the magnetic properties and infrared marks present on legitimate currency.