Reducing a variable every x seconds [Arduino Uno]