Write temperature and current timestamp to file