NodeMCU + ESP8266 + DHT22 + Blynk.run() nan issues

But will try to examine your code later tonight when I’m on a proper PC…

Update: Now after 2 days i get only failed to read errors, no real reading, tried as well to unplug the data pin and put it back, no luck, but after unplugging the sensor vcc and gnd and plugging back, start to work again, as it worked before.

Hi, I just found if add a
dht.begin();
in sendUptime() , the success rate will be increased.
like below:

    void sendUptime()
    {
      dht.begin();
      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.println("OK");
    }

Old topic - Much has changed in libraries since then.