# \[SOLVED\] "Failed to read from DHT sensor!"

**URL:** <https://forums.losant.com/t/solved-failed-to-read-from-dht-sensor/1629>\
**Category:** Help\
**Tags:** esp8266, dht22\
**Created:** [March 19, 2019, 1:31pm UTC](https://forums.losant.com/t/solved-failed-to-read-from-dht-sensor/1629 "2019-03-19T13:31:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [March 19, 2019, 1:59pm UTC](https://forums.losant.com/t/solved-failed-to-read-from-dht-sensor/1629/2 "2019-03-19T13:59:39Z")

</div>

Good morning @Luiz_Carlos_de_Azeve,

I am looking for just a bit more information to help find a solution to this. 😄

Within the [Getting Started with the ESP8266 and DHT22 Sensor](https://www.losant.com/blog/getting-started-with-the-esp8266-and-dht22-sensor) blog post, there is a note before the code:

> You’ll need to increase the underlying MQTT library’s memory limit. The [PubSubClinet MQTT library](https://github.com/knolleary/pubsubclient) has a default memory limit that is not enough to support all the values that the DHT22 sensor can collect. The error is also not apparent, which makes it hard to track. To increase the memory limit, please check out this [forum post](https://forums.losant.com/t/sending-commands-with-larger-payloads/135?source_topic_id=446&source_topic_id=446).

If you have not completed this step, errors can arise. If you have completed this step, and are still getting the error, let me know and we will try again!

Thanks,  
Julia

---

_[View the full topic](https://forums.losant.com/t/solved-failed-to-read-from-dht-sensor/1629)._
