working example of reading the temp data