Esp-01 with relay

Hello
excuse me I’m using esp-01 to control relay through blynk and also has humidity sensor
previously i use it with old version of blynk and it was working fine.

but after i changed to the new blunk 2.0 , it doesn’t work properly … i can get data from humidity sensor on … but i cant control the relay with switch button in blynk like i used to
this is my code

#define BLYNK_PRINT Serial    
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>


char auth[] = 

char ssid[] = 
char pass[] = 

#define DHTPIN 2
#define DHTTYPE DHT11 

DHT dht(DHTPIN, DHTTYPE);
SimpleTimer timer;

void sendSensor()
{
  float h = dht.readHumidity();
  float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit

  if (isnan(h) || isnan(t)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V5, h);
  Blynk.virtualWrite(V6, t);
  Serial.print("Temp = ");
  Serial.print(t);
  Serial.print(" Humi = ");
  Serial.println(h);
}

void setup()
{
  //pinMode(3, OUTPUT);
  Serial.begin(9600); // See the connection status in Serial Monitor
  Blynk.begin(auth, ssid, pass, "blynk.cloud",80);
  dht.begin();
    
  // Setup a function to be called every second
  timer.setInterval(1000L, sendSensor);
}

void loop() {


  Blynk.run(); // Initiates Blynk
  timer.run(); // Initiates SimpleTimer
}

BLYNK_WRITE(V4)
{
  // button was pressed
  if (param.asInt() == 1)
  {
    digitalWrite(3, HIGH);
    timer.setTimeout(60000L, relayOff);
  }
}

void relayOff()
{
  digitalWrite(3, LOW);
}

the relay most be open for 1 minutes the back to normal
I’d really appreciate your help
thank you

First of all, you shouldn’t be forcing the connection to t6he new Blynk IoT servers like this;

Instead you should be using:
Blynk.begin(auth, ssid, pass);

and placing the BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME at the very top of your sketch and compiling the sketch using version 1.1.0 of the Blynk C++ library.

Secondly, you need a pinMode() statement in your void setup to declare the relay pin (GPIO3) as an OUTPUT.

Pete.