loop and read the temp