Improved temperature reading library