https://laughingsquid.com/how-modern-vending-machines-detect-coin-values-ignore-fakes-and-prevent-hanging-snacks/
How Modern Vending Machines Detect Coin Values, Ignore Fakes, and Prevent Hanging Snacks