Adjusted read temp function