Adding code using blynk on arduino IDE

Hi all,

Looking for someone to help me here. I’ve set up my arduino uno with an Ethernet shield. I’m using the blynk app to control lighting with an LED and a relay to demonstrate a possible future project by hooking it up to heating system . I’ve a DHT22 also giving me live temp and humidity readings. At the moment to turn on relay (heating) I have to turn it on through the app .
I want to set up code that allows me to also turn on the relay on digital pin 7 when temp drops below 21 degrees and off when it goes above 30 degrees …
I have written code but it doesn’t seem to work!

Share your code (correctly formatted with backticks and cpp) and we’ll take a look at it.

Pete.