Record data every 5 seconds
Save data as json