Add better validation for temperatures