Hi I have a DHT11 Temperature and humidity sensor, Single RGB LED and a Photocell.
I need to set up my board so that the RGB colour will match the room temperature (cold = blue hot - red) and with the photocell to control the brightness of the LED.
Could someone please help me here as I am completely new at this and have till monday to get it done!!!
Sounds like you want us to do the (home)work for you. Being "completely new at this", it's the wrong type of project to start with. Learn how to use them first, how to turn on/off the LED, how to read the temperature, how to interpret the photocell ...
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.
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();
}