temperature reading without the use of queue