Get temperature and save it in a file when clicked