Another alternative is to create a relationship between the current temperature and the color. Colors are made of the combination of Red, Green and Blue, each of them ranging from 0 to 255 (usually). If your temperature goes from 0 to 100 C, you can use the relationship 255/100.
Attached is an example.
Regards;
E. Vargas
www.vartortech.com