Made caching work awesomely
Now saves last update of sensor the last received measurement, but saves files with time now to make sure the server gets all the data