Hard working with widget led

Hi everyone
I have a problem with adding another LED_SatusOfButton and DTH11
I will be grateful for help

> #define BLYNK_PRINT Serial   
> #include <ESP8266_Lib.h>
> #include <BlynkSimpleShieldEsp8266.h>
> #include <SimpleTimer.h>
> char auth[] = "xdxd";
> char ssid[] = "name";
> char pass[] = "pass";
> #include <SoftwareSerial.h>
> SoftwareSerial EspSerial(12, 13); // RX, TX
> #define ESP8266_BAUD 9600
> ESP8266 wifi(&EspSerial);
> const int btnPin = 7;
> WidgetLED led3(V3);
> SimpleTimer timer;
> void setup()
> {  
>   Serial.begin(9600);
>   delay(10);
>   EspSerial.begin(ESP8266_BAUD);
>   delay(10);
>   Blynk.begin(auth, wifi, ssid, pass);
>   pinMode(btnPin, INPUT_PULLUP);
>   while (Blynk.connect() == false) {
>   }
>   timer.setInterval(500L, buttonLedWidget);
> }
> boolean btnState = false;
> void buttonLedWidget()
> {
>     boolean isPressed = (digitalRead(btnPin) == LOW);
>   if (isPressed != btnState) {
>    if (isPressed) {
>       led3.on();
>    } else {
>       led3.off();
>     }
>     btnState = isPressed;
>   }
>}
> void loop()
>{
>  Blynk.run();
>   timer.run();
> }

@lesniakrafael that’s the first sketch I have seen with no lines of code.
I would suggest you change your IDE to one that gives you something like this:

   #define BLYNK_PRINT Serial 
   #include <ESP8266_Lib.h>
   #include <BlynkSimpleShieldEsp8266.h> 
   #include <SimpleTimer.h>
   char auth[] = "xdxd";
   char ssid[] = "name";
   char pass[] = "pass";
   #include 
   //SoftwareSerial EspSerial(12, 13);     RX, TX
   #define ESP8266_BAUD 9600
   ESP8266 wifi(&EspSerial);
   const int btnPin = 7;
   WidgetLED led3(V3);
   SimpleTimer timer;
   
   void setup()
   {
     Serial.begin(9600);
     delay(10);
     EspSerial.begin(ESP8266_BAUD);
     delay(10);
     Blynk.begin(auth, wifi, ssid, pass);
     pinMode(btnPin, INPUT_PULLUP);
     while (Blynk.connect() == false) {
     }
        timer.setInterval(500L, buttonLedWidget);
     }
     boolean btnState = false;
     void buttonLedWidget()
     {
     boolean isPressed = (digitalRead(btnPin) == LOW);
     if (isPressed != btnState) {
       if (isPressed) 
       {
        led3.on();
       } 
       else {
          led3.off();
       }
     btnState = isPressed;
     }
   }
   
   void loop()
   {
      Blynk.run();
      timer.run();
   }

I have guessed 3 of your 4 missing includes. The other will be for DHT11. Please provide details of the include and format it with the </> menu item.
If you are not going to make the sketch easy for us to read we are not going to spend too much time trying to help you.
Please explain in great detail what problem means, we are not clairvoyants.

thanks @Costas I corrected post
Okey
I did this sketch but I don’t know what to do next

I want to add to it another WidgetLED led_(__);

And program to DHT11 in Celcius (illustrative photo) like this

I need someone to show me how to write it

Have you used DHT11 before using Blynk?

See how you go with this http://www.instructables.com/id/ESP8266-12-blynk-wireless-temperature-e-humidity-D/ and remember Google is your friend.

This Skatch work very well I added one WidgetLED and term DTH11
But still I can’t add secound WidgetLED

   #define BLYNK_PRINT Serial   
    #include <ESP8266_Lib.h>
    #include <BlynkSimpleShieldEsp8266.h>
    #include <SimpleTimer.h>
    #include <DHT.h>
    char auth[] = "xdxd";
    char ssid[] = "name";
    char pass[] = "pass";
    #include <SoftwareSerial.h>
    SoftwareSerial EspSerial(12, 13); // RX, TX
    #define ESP8266_BAUD 9600
    #define DHTPIN 4       
    #define DHTTYPE DHT11     
    DHT dht(DHTPIN, DHTTYPE);
    ESP8266 wifi(&EspSerial);
    const int btnPin = 7;
    WidgetLED led3(V3);
    SimpleTimer timer;
    void setup()
    {  
      Serial.begin(9600);
      delay(10);
      EspSerial.begin(ESP8266_BAUD);
      delay(10);
      Blynk.begin(auth, wifi, ssid, pass);
      dht.begin();
      timer.setInterval(1000L, sendSensor);
      pinMode(btnPin, INPUT_PULLUP);
      while (Blynk.connect() == false) {
    }
    timer.setInterval(500L, buttonLedWidget);
    }
    boolean btnState = false;
    void buttonLedWidget()
    {
    boolean isPressed = (digitalRead(btnPin) == LOW);
    if (isPressed != btnState) {
    if (isPressed) {
    led3.on();
    } else {
    led3.off();
    }
    btnState = isPressed;
    }
    }
    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);
    }
    void loop()
    {
    Blynk.run();
    timer.run();
    }

You have WidgetLED led3(V3) why not try also ading WidgetLED ledx(Vy) .

I added buy not working

Just use the following then:

Blynk.virtualWrite(Vx, 255);  // to turn LED x ON
Blynk.virtualWrite(Vx, 0);     // to turn LED y OFF

How to this code add other buttonLedWidget
I need 3 another one LedWidget

 #define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
    #include <ESP8266_Lib.h>
    #include <BlynkSimpleShieldEsp8266.h>
    #include <SimpleTimer.h>
    #include <DHT.h>
    // You should get Auth Token in the Blynk App.
    // Go to the Project Settings (nut icon).
    char auth[] = "6855967bde5149eaba665c4863dc7e77";
    #define DHTPIN 5
    #define DHTTYPE DHT11 
    DHT dht(DHTPIN, DHTTYPE);

    const int btnPin = 22;
    WidgetLED led3(V3);
    // Your WiFi credentials.
    // Set password to "" for open networks.
    char ssid[] = "Salon";
    char pass[] = "administrator";

    // Hardware Serial on Mega, Leonardo, Micro...
    #define EspSerial Serial1

    // or Software Serial on Uno, Nano...
    //#include <SoftwareSerial.h>
    //SoftwareSerial EspSerial(2, 3); // RX, TX

    // Your ESP8266 baud rate:
    #define ESP8266_BAUD 9600

    ESP8266 wifi(&EspSerial);
    SimpleTimer timer;
    void setup()
    {
      // Set console baud rate
      Serial.begin(9600);
      delay(10);
      // Set ESP8266 baud rate
      EspSerial.begin(ESP8266_BAUD);
      delay(10);

      Blynk.begin(auth, wifi, ssid, pass);
       dht.begin();

      // Setup a function to be called every second
      timer.setInterval(1000L, sendSensor);
      pinMode(btnPin, INPUT_PULLUP);

      while (Blynk.connect() == false) {
        // Wait until connected
      }

      timer.setInterval(500L, buttonLedWidget);
    }
    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);
    }
    boolean btnState = false;
    void buttonLedWidget()
    {
      // Read button
      boolean isPressed = (digitalRead(btnPin) == LOW);

      // If state has changed...
      if (isPressed != btnState) {
        if (isPressed) {
          led3.on();
        } else {
          led3.off();
        }
        btnState = isPressed;
      }
    }
    void loop()
    {
      Blynk.run();
      timer.run(); // Initiates SimpleTimer
    }