Controlling a RGB LED via temperature HELP

Giving your opinion of whether you think this is the right or wrong project for me to be doing isn't what I was asking and I don't need you to patronise me. And yes I can read a temperature from the DHT11 and I can adjust the brightness with the photocell. I am just unable to map a RGB colour to the temperature and blend the two scripts together.