ESP32 Tutorial - DHT11/DHT22 (Temperature and Humidity Sensor)
HTML-код
- Опубликовано: 4 сен 2024
- How to use a DHT sensor with an ESP32 board!
● Playlist Link: bit.ly/3TdXiq5
● Introduction to ESP32: • Introduction to ESP32 ...
● Serial Monitor( NEW Arduino IDE ): • ESP32 Tutorial - How t...
♥ Don't Click This! : bit.ly/3jvI8g6
--------------------------------------------------------------------
FOLLOW ME:
● TikTok :
/ enjoy_mechatronics
● Facebook: / enjoymechatronics
● Github: github.com/Enj...
--------------------------------------------------------------------
► All content by Enjoy Mechatronics is 100% free.
I believe that education should be freely available to everyone.
Much better than my teacher, she asks us for projects in a short time and then leaves for a week without teaching us anything and expects us to know everything.
You made it look so easy that I wonder how hard it was for him to explain it to us anyway.
♥ Don't Click This! : bit.ly/3jvI8g6
Great video!! Helped me pass my prostate exam
Glad it helped!
#include
DHT dht(26, DHT11);
void setup() {
dht.begin();
delay(2000);
Serial.begin(115200);
}
void loop() {
float temp = dht.readTemperature();
float humidity = dht.readHumidity();
Serial.print("Temp: ");
Serial.print(temp);
Serial.print(" C ");
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println(" % ");
delay(2000);
}
thank you
This is an awesome tutorial. I see you are not using a resistor on your signal pin. I have one of these working successfully with an ESP32 but when I tried using an ESP32-S2 it acts just like it's not present. I'm using a resistor on the signal pin.
looks and sound simple to understand.
thanks!
You are welcome!
92% of humidity? xD great video!
Excellent, finally a good tutorial about this. Thanks.
Glad it was helpful!
i used dht 22 and managed to get the reading for my three sensor. But the last dht22 gave me nan celsius and ann humidity. How to solve this?
Very simple and well explained, Thank You
Glad it was helpful😊
Hro what app are u using to show dht11 commected to esp32?
Why my output is like this?
o/p:
TEMP: nan C
Humidity: nan%
Please help me out.
Same problem with me
Calibrate ?
It is because your dht is not properly connected or it is not working
Check the pins
جزاك الله كل خير 🥰🥰🥰🥰
الله يبارك لك
I'll try using your video, as I have an ESP32 S3 board and an INA219 current sensor and using PlatformIO in VSCode and I can't see the current values. It only says `Talk is running`, which means it is reading, executing but the current values do not appear on the terminal. If you can give me a tip I would appreciate it! Or if I had a video from someone even better?
thanks a lot
Happy to help
Hello, thank you for video, but you don't show how to install driver for ESP32 and how you installed ESP32 in 'Broad Manager'
We've talked about that in this guide
ruclips.net/video/aLEKiGNfHZw/видео.html
@@EnjoyMechatronics ty
Iam struggling for 1 week for my temp project still I cannot manage
well explained, kudos!!
deben instalar una libreria mas aparte de la que mencionan en el video la libreria es :Adafruit Unified Sensor
THE BEST!!
Hi, someone knows what is the maximum area i can use this sensor?
Osam its work 100% thanks bro
Great 👍
hello, when i compile it says failed uploading. i pressed the boot button and the enable one but still the same problem.
what can i do please?
You are 100% sure you didn't make a mistake in the code? Try pressing verify for compiler to check if the code is "doable" for your board. Of course it may not support all exceptions but it usually helps to notice a missing comma or dot. If it does compile you should make sure you have the exact board. For example just by looks Esp32 and Esp8266 look simmilar (build almost the same way, usually on the board type, and both cores are shielded) but are different inside.
Can you use shtc3?
Can I download the results?
Hi, can you use mq2 sensor?
Of course
ruclips.net/video/oJa-Bnvni3Q/видео.html
why do i keep getting nan? i have arduino nano iot 33
There is a problem with the sensor
is this esp32 s2??
Send code
why am i get nanC as a result
Something went wrong with the sensor
super
Thank you
HAY CODIGO HAY LIKE