For debugging purposes, I would have some message to the Arduino IDE's serial monitor that displays when the void coinInserted() is called. Just placing one right at the end would give an indication if your ISR is even being called.
For debugging purposes, I would have some message to the Arduino IDE's serial monitor that displays when the void coinInserted() is called. Just placing one right at the end would give an indication if your ISR is even being called.