Fixed bug that caused the timout to not trigger when the arduino was on more than 1000 seconds.