changed temperature reading routine on startup