Removed while loop from read_temp()