Open link in next tab
https://www.slyautomation.com/blog/dht11-with-arduino/
https://www.slyautomation.com/blog/dht11-with-arduino/
Those sensors are pure trash. Use SHT-75 or SHT-85 if you actually care about getting a real value. More expensive though.