So:
- you can manage to read the temperature
- you can manage analogWrites to the R, G, B to do colours
Knock out some functions [red(), orange(), yellow(),...]
Then you could get by with some ifs for determining with which of those colour functions to execute:
if (temp>10 && temp < 20)
{
red();
}
if (temp >= 20 && temp < 30)
{
orange();
}
...and so on
OK ?