How a Vending Machine Detects Fake Coins

This interesting video shows how a vending machine quickly and accurately detects if the coins input are fake or real. It uses light sensors to measure the size of the coin, and electromagnets to detect the material in the coin. Fake coins get rejected and spit out, while real coins get collected.