Arduino code for a old vending machine