Dht22 display error

I want to create a push button on Blynk to control my device via Relay when the ON button is pressed, the machine will work, OFF then stops. but i’m having problem is when the button is ON the device i will run and it will include the condition set in this command ring i don’t want that to happen i just want this code to run when the button is in OFF mode

void eval_readings ()
      { 
      if(temp<settemp)
     { 
     digitalWrite(RELAYlamp, HIGH);
     
     }
       else
      {
        digitalWrite(RELAYlamp, LOW);
         
      }
      if(hum<sethum)
    {
     digitalWrite(RELAYpump, HIGH);
    
     }
       else
         {
           digitalWrite(RELAYpump, LOW);
          
         }
        }

Okay, the simplest way is to use a button widget set to Switch mode. When the value of the widget changes, set a global Boolean flag variable.
Let’s assume that you call this flag variable auto_mode and that it’s true (1) when the button widget is in the On position.
You then only evaluate the if command in void eval_readings if this is true like this…

void eval_readings ()
{ 
  if(auto_mode) // Only do the rest of this if auto_mode = true
  {
    if(temp<settemp)

Pete.