BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

[Help] gauge widget goes to zero every time it updates

Hello there i need help with my projec dht11 temperature reading but with a simpler library it works but when the gauges update they go to zero every time and it anoys me any ideas ?

Also gauges are in one second pull mode and pull from esp

Thanks guys

Post the code. Also some screenshots of the gauges. Use triple back tick the line before and after the code. ```

thats the main stuff

    BLYNK_READ(V1){Blynk.virtualWrite(V1,dht.getTemperature());}
    BLYNK_READ(V2){Blynk.virtualWrite(V2,dht.getTemperature());}



    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", 80);
      //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
      dht.setup(15);
      
    }






    void loop()
    {
      Blynk.run();

      // You can inject your own code or combine it with other sketches.
      // Check other examples on how to communicate with Blynk. Remember
      // to avoid delay() function!
    }

we need to see the full code, not just parts of it.

try not to read the dht every second, because it is a slow sensor and needs at least 2.5 sec intervals…

Because you are polling sensor too fast. As @wanek suggested try to get one reading per 3 seconds. DHT sensor report no value or some garbled data between two fast polling incidents.

Thx guys you are the best