DHT22 changing RGB LED colors

(deleted)

What temperature did it read? You've got some gaps in your colors code, so not all temperatures get a color.

For example, what color should it be if the temp is 20? What about 25?

(deleted)

Why at the top of loop you use getTemperature but in buttonYes you get it from reading an analog pin? When you say the temp was 18 which measurement are you talking about? Are you sure the two read the same temp?