Esp8266+dht22 temperature and humidity reading in serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#define DHTPIN 5 //pin gpio 5 in sensor
#define DHTTYPE DHT22   // DHT 22 Change this if you have a DHT11
DHT dht(DHTPIN, DHTTYPE);
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "I0D_a0yjzD1ObkIiMAIkrNUi8Ax_bXB6";  // Put your Auth Token here. (see Step 3 above)
SimpleTimer timer;
void setup()
{
  Serial.begin(9600); // See the connection status in Serial Monitor
   Blynk.begin(auth, "DIGI-vC3w", "094159846"); //insert here your SSID and password 
  // Setup a function to be called every second
  timer.setInterval(1000L, sendUptime);
}
void sendUptime()
{
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
   //Read the Temp and Humidity from DHT
  float h = dht.readHumidity();
  float t = dht.readTemperature();
    Blynk.virtualWrite(V10, t); // virtual pin 
  Blynk.virtualWrite(V11, h); // virtual pin 
  Serial.print("T=");
  Serial.println(t);
  Serial.print("H=");
  Serial.println(h);
}
void loop()
{
 Blynk.run();
 timer.run();
}

I get strange readings of temperature and humidity.
In another code for displaying as html it displays me well.
I use the same DHT library.

In the code above it displays temperature 10.20 and humidity 3340.00

And with another code it displays 23.00 for temperature and humidity 50.40%

@Dalibor_Stefanovici please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Pete.

I hope it’s OK

No, instead of copying and pasting the triple backticks that I provided you’ve used blockquotes instead.
Try again.

Pete.

Fixed issue, error was from SimpleTimer.h.
Thank you.

I think the requests with this sensor ?

timer.setInterval(1000L, sendUptime);

are too frequent ? Try with 5000L !?

Sorry, i did not see the “solved” status ! :wink: