# DHT 11 module problem \[FIX\]

**URL:** <https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084>\
**Category:** Sensors\
**Created:** [January 7, 2025, 5:29pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084 "2025-01-07T17:29:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Szpieg](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/szpieg/32/1152175_2.png) [@Szpieg](https://forum.arduino.cc/u/Szpieg)\
**Post date:** [January 7, 2025, 5:29pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/1 "2025-01-07T17:29:16Z")

</div>

I tested a freshly bought DHT 11 sensor together with an Arduino r4 WiFi and everything worked for a couple of hours. The next day I did a larger project with leds, photoresistor, water level sensor and the aforementioned DHT 11 sensor. At first the sensor worked fine but after a while it showed an error and got very hot. A couple of times later I connected it, but each time it heated up terribly. I connected everything as it was shown on the internet (VCC to 5V, GND to GND and DATA to pin 2 on the Arduino).Other sensors and diodes similarly. And of all the components only this one broke. Well, and now I don't know myself if it is my fault or if I can complain to the store.  
It is worth noting that I bought the sensor for about 4 euros so it was not some very expensive.

Example photo of the sensor:

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/7/c/8/7c8fda1bdddfbc48c5ff38c0a1470ea4e8be1ce4.jpeg)

---

<div class="post-metadata">

**Author:** ![Brazilino](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/brazilino/32/1198404_2.png) [@Brazilino](https://forum.arduino.cc/u/Brazilino)\
**Post date:** [January 7, 2025, 6:09pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/2 "2025-01-07T18:09:28Z")

</div>

Hi! Welcome to the Forum.

> [@Szpieg](#):
>
> I connected everything as it was shown on the internet (VCC to 5V, GND to GND and DATA to pin 2 on the Arduino).Other sensors and diodes similarly.

> [@Szpieg](#):
>
> it is my fault

We can't tell until you show us a schematic of how everything was connected.

Probably a wrong connection or a short circuit during operation may have damaged the sensor. I have some of them operating 24/7 flawlessly.

> [@Szpieg](#):
>
> It is worth noting that I bought the sensor for about 4 euros so it was not some very expensive.

Indeed this sensor is not expensive. Probably the best solution is just to buy another and try again.

---

<div class="post-metadata">

**Author:** ![sonofcy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sonofcy/32/1283617_2.png) [@sonofcy](https://forum.arduino.cc/u/sonofcy)\
**Post date:** [January 7, 2025, 7:02pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/3 "2025-01-07T19:02:36Z")

</div>

It is best to buy those sensors in lot's of 10 as many will be DOA or not last long.  
Do as post #2 says, we are neither mind readers nor have super long distance sight.

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [January 7, 2025, 8:13pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/4 "2025-01-07T20:13:18Z")

</div>

> [@Szpieg](#):
>
> and got very hot.

Did you still get readings from it?  
If not check the power wires (VCC and GND) , twice (at least).

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [January 7, 2025, 8:50pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/5 "2025-01-07T20:50:24Z")

</div>

> [@Szpieg](#):
>
> At first the sensor worked fine but after a while it showed an error and got very hot.

Yes I think you fried the sensor. That happened when you connected the purple wire to the pink one. Look closely at your code between lines 34 and 96 I think I saw something in there.

If you want a better answer do the following:

1. **Provide Us Clear Documentation:** Since we can’t see your project, share acomplete annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.

2. **Include Technical Details:** If there is specific hardware involved, include **links to technical information**. There are often many versions of similar components, so precise details are essential. What version are you using?

3. **Reference Resources:** For additional help, check out useful links and tutorials: [Useful Links on Arduino Forum](https://forum.arduino.cc/t/useful-links-check-here-for-reference-posts-tutorials/370268). Post links to your hardware technical information.

4. **Obtain a copy:** of the **Arduino Cookbook** and complete several of the projects. Many of them will help you achieve parts of your goals.

5. **Course Electronics For Beginners** (eBook)

6. [Electronics For Beginners (eBook)](https://rntlab.com/product/electronics-for-beginners/)

7. [Arduino Step-by-step Projects Course | Build 25 Projects](https://rntlab.com/product/arduino-step-by-step-projects-course/)

---

<div class="post-metadata">

**Author:** ![Szpieg](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/szpieg/32/1152175_2.png) [@Szpieg](https://forum.arduino.cc/u/Szpieg)\
**Post date:** [January 8, 2025, 4:45pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/6 "2025-01-08T16:45:08Z")

</div>

> [@Brazilino](#):
>
> We can't tell until you show us a schematic of how everything was connected.

Hi, As requested, I made a diagram. Unfortunately on tinkercad there are not a couple of parts and that's why I was forced to give others or I didn't give resistors in 2 leds(for example instead of DHT sensor I gave a tiny module but the most important thing is that it has 3 outputs), so don't judge the quality of the sketch just please pay attention to the connection. According to me the sensor is connected correctly so I think it was some defect in the sensor. But anyway I'm waiting for an answer from someone who is more knowledgeable than me.

 ![IMG_2537](https://europe1.discourse-cdn.com/arduino/original/4X/5/9/8/598ce54f90f074a8afd9b04f6870e487c06e3403.jpeg)  
 ![Arduino DHT11 problem-1](https://europe1.discourse-cdn.com/arduino/original/4X/2/9/a/29a349ac4a39414b809380b7d1625ae645445469.png)

> [@gilshultz](#):
>
> That happened when you connected the purple wire to the pink one. Look closely at your code between lines 34 and 96 I think I saw something in there.

Unfortunately but I don't know which cables you mean or which lines of code.

> [@robtillaart](#):
>
> Did you still get readings from it?  
> If not check the power wires (VCC and GND) , twice (at least).

No, I connected with different cables and still no response from the sensor.

> [@Brazilino](#):
>
> Indeed this sensor is not expensive. Probably the best solution is just to buy another and try again.

Yes, but I would like to buy the sensor once and right.

And at the end of the post I have a question: or is it better to buy one sensor for 8/10 euros and it will never break for me? 👓

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [January 8, 2025, 6:41pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/7 "2025-01-08T18:41:32Z")

</div>

> [@Szpieg](#):
>
> which cables you mean or which lines of code

Neither do we.

---

<div class="post-metadata">

**Author:** ![Brazilino](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/brazilino/32/1198404_2.png) [@Brazilino](https://forum.arduino.cc/u/Brazilino)\
**Post date:** [January 8, 2025, 9:02pm UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/9 "2025-01-08T21:02:46Z")

</div>

> [@Szpieg](#):
>
> just please pay attention to the connection.

Your LDR connection is not right. On the Thinkercad image, A5 should be connected between the resistor and the LDR.

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/e/c/a/ecacb076b6b793dedbfa04c497cc71225b6d54d1.jpeg)

This unfortunately has nothing to do with the DHT11 problem and I didn't detected other problems, presuming:  
a) you connected the pin S of the DHT11 on D2;  
b) you didn't swap GND with +5V at any moment;  
c) you didn't connect or disconnect the sensor with the circuit energized.

> [@Szpieg](#):
>
> And at the end of the post I have a question: or is it better to buy one sensor for 8/10 euros and it will never break for me? 👓

You can buy a 100€ sensor and yet have no guarantee that it is not a dud or will not be damaged by accident (being accident a wide concept). The key to success in this case is buying from a reputable seller.  
If your question is about the sensor model, there are many other options but most of them will use other protocols (I2C for instance), and it's up to you decide if you want to go ahead.

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [January 9, 2025, 1:30am UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/10 "2025-01-09T01:30:42Z")

</div>

The picture you provided with the lines is not useful for troubleshooting. On your schematic, you have two red LEDs (D1 and D2) shown without resistors, which can damage your UNO. Similarly, the way you’ve connected the speaker could also harm the board. I suggest you consider investing in a few replacement UNOs as a precaution.

To improve your schematic work, I recommend trying KiCad, a powerful and free CAD (Computer-Aided Design) software for circuit design. While it does request an optional donation, it’s fully functional without one. It’s not something you’ll master in just a few days, but you can start creating useful designs fairly quickly.

---

<div class="post-metadata">

**Author:** ![Szpieg](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/szpieg/32/1152175_2.png) [@Szpieg](https://forum.arduino.cc/u/Szpieg)\
**Post date:** [January 9, 2025, 7:23am UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/11 "2025-01-09T07:23:04Z")

</div>

> [@Brazilino](#):
>
> Your LDR connection is not right. On the Thinkercad image, A5 should be connected between the resistor and the LDR.

As I wrote, this sketch is not correct because I made it from memory, so it has no significance with the sensor.

> [@gilshultz](#):
>
> On your schematic, you have two red LEDs (D1 and D2) shown without resistors, which can damage your UNO. Similarly, the way you’ve connected the speaker could also harm the board. I suggest you consider investing in a few replacement UNOs as a precaution.

@gilshultz  
In my previous post I pointed out that the sketch is not precise and the connection of the buzzer and LEDs has no significance for DHT. I connected them like this because on my real project I have a buzzer with a built-in resistor and LEDs are also rather modules with resistors. There are no such modules on tinkercad so I put it like this.

@Brazilino Thank you for your answer, I want to point out that even now when I connect this sensor, a small LED lights up on the module, so in general the cables conduct electricity correctly, only the sensor still has some error. In the near future I will try to complain to the seller. And now I mark your post as the SOLUTION.  
Thank you to everyone who got involved in my problem!😃

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 8, 2025, 7:23am UTC](https://forum.arduino.cc/t/dht-11-module-problem-fix/1340084/12 "2025-07-08T07:23:08Z")

</div>

Closed on July 8, 2025, 7:23am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
