I want to use value from parameter in BLYNK_WRITE() function . How should I do

Myproject about measure temperature and humidity :sweat_smile: :joy:

I use 2 Node MCU , One is Master that receive temperature and humidity value from Sensor 1,Another is Sensor1 (Slave).

Master Code

    #define BLYNK_PRINT Serial

    #include <ESP8266WiFi.h>
    #include <BlynkSimpleEsp8266.h>

    // You should get Auth Token in the Blynk App.
    // Go to the Project Settings (nut icon).
    char auth[] = "afc3a4ffb11d48efb75eb8b0cf397e10";

    // Your WiFi credentials.
    // Set password to "" for open networks.
    char ssid[] = "Connectify-me";
    char pass[] = "ap123456789";

    float TempSensor1;
    float HumiditySensor1;


    BLYNK_WRITE(V5)
    {
      float TempSensor1 = param.asFloat(); // assigning incoming value from pin V5 to a variable
      // You can also use:
      // String i = param.asStr();
      // double d = param.asDouble();
      Serial.print("TempSensor1 is: ");
      Serial.println(TempSensor1);

    }
    BLYNK_WRITE(V6)
    {
      float HumiditySensor1 = param.asFloat(); // assigning incoming value from pin V5 to a variable
      // You can also use:
      // String i = param.asStr();
      // double d = param.asDouble();
      Serial.print("HumiditySensor1 is: ");
      Serial.println(HumiditySensor1);

    }

    void setup()
    {
      
      Serial.begin(9600);

      Blynk.begin(auth, ssid, pass);
      // You can also specify server:
      //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
      //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
    }

    void loop()
    {
      
      Blynk.run();
    }

Sensor1 (Slave) Code

    #define BLYNK_PRINT Serial

    #include <ESP8266WiFi.h>
    #include <BlynkSimpleEsp8266.h>
    #include <SimpleTimer.h>
    //**
    #include <SPI.h>
    #include <DHT.h>
    //**
    #define DHTPIN 2         
    #define DHTTYPE DHT11 
    //**


    // You should get Auth Token in the Blynk App.
    // Go to the Project Settings (nut icon).
    char auth[] = "c7d8918ccf2c47b3a74afb4a4f9b5cae";

    // Your WiFi credentials.
    // Set password to "" for open networks.
    char ssid[] = "Connectify-me";
    char pass[] = "ap123456789";

    // Bridge widget on virtual pin 1
    WidgetBridge bridge1(V1);
    //**
    DHT dht(DHTPIN, DHTTYPE);
    //**



    // Timer for blynking
    SimpleTimer timer;

    void blynkAnotherDevice() // Here we will send HIGH or LOW once per second
    {
      //**
      float h = dht.readHumidity();
      float t = dht.readTemperature();
      //**
      // Send value to another device
        
           bridge1.virtualWrite(V5, t);
           bridge1.virtualWrite(V6, h);// Sends 0 value to BLYNK_WRITE(V5) handler on receiving side.
      }


    BLYNK_CONNECTED() {
      bridge1.setAuthToken("afc3a4ffb11d48efb75eb8b0cf397e10"); // Place the AuthToken of the second hardware here
      Serial.println ("Sensor1 Linked to Master");

    }

    void setup()
    {
      // Debug console
      Serial.begin(9600);

      Blynk.begin(auth, ssid, pass);
      // You can also specify server:
      //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
      //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);

      // Call blynkAnotherDevice every second
      timer.setInterval(1000L, blynkAnotherDevice);
    }

    void loop()
    {
     
      Blynk.run();
      timer.run();
    }

In Master Code I want to use TempSensor1 in BLYNK_WRITE(V5) function and HumiditySensor1 in BLYNK_WRITE(V6) function to calculate and adjust error value of parameter in THE VOID LOOP() function such as this code below

Master Code(to use parameter in BLYNK(V5) function)

    #define BLYNK_PRINT Serial

    #include <ESP8266WiFi.h>
    #include <BlynkSimpleEsp8266.h>

    // You should get Auth Token in the Blynk App.
    // Go to the Project Settings (nut icon).
    char auth[] = "afc3a4ffb11d48efb75eb8b0cf397e10";

    // Your WiFi credentials.
    // Set password to "" for open networks.
    char ssid[] = "Connectify-me";
    char pass[] = "ap123456789";

    float TempSensor1;
    float HumiditySensor1;


    BLYNK_WRITE(V5)
    {
      float TempSensor1 = param.asFloat(); // assigning incoming value from pin V5 to a variable
      // You can also use:
      // String i = param.asStr();
      // double d = param.asDouble();
      Serial.print("TempSensor1 is: ");
      Serial.println(TempSensor1);
   

    }
    BLYNK_WRITE(V6)
    {
      float HumiditySensor1 = param.asFloat(); // assigning incoming value from pin V5 to a variable
      // You can also use:
      // String i = param.asStr();
      // double d = param.asDouble();
      Serial.print("HumiditySensor1 is: ");
      Serial.println(HumiditySensor1);

    }

    void setup()
    {
      
      Serial.begin(9600);

      Blynk.begin(auth, ssid, pass);
      // You can also specify server:
      //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
      //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
    }

    void loop()
    {
     int TempSensor1;   // How to get value of   TempSensor1 paremeter in  BLYNK_WRITE(V5) function  
     int a;
     int HumiditySensor1;//How to get value of   HumiditySensor1 paremeter in  BLYNK_WRITE(V6) 
     int b;
     a=TempSensor1+2
     b=HumiditySensor1+3
      Serial.println(a);
     

      Serial.println(b);
      Blynk.run();
    }

I try to edit code like C++ but it’s not worked . The code that edit is below

     BLYNK_WRITE(V5)
        {
          float TempSensor1 = param.asFloat(); // assigning incoming value from pin V5 to a variable
          // You can also use:
          // String i = param.asStr();
          // double d = param.asDouble();
          Serial.print("TempSensor1 is: ");
          Serial.println(TempSensor1);
          return TempSensor1;   //edit*****
       

        }
        BLYNK_WRITE(V6)
        {
          float HumiditySensor1 = param.asFloat(); // assigning incoming value from pin V5 to a variable
          // You can also use:
          // String i = param.asStr();
          // double d = param.asDouble();
          Serial.print("HumiditySensor1 is: ");
          Serial.println(HumiditySensor1);
          return HumiditySensor1;  //edit*****

        }