Changing loops and counter structure

Check temp every minute, upload data every 5 mins