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.
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.
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:
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.
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?
Reference Resources: For additional help, check out useful links and tutorials: Useful Links on Arduino Forum. Post links to your hardware technical information.
Obtain a copy: of the Arduino Cookbook and complete several of the projects. Many of them will help you achieve parts of your goals.
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.
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.
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.
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.
As I wrote, this sketch is not correct because I made it from memory, so it has no significance with the sensor.
@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!