Fix temperature value

Thanks to @jalava, who posted issue #1.