DHT11 and DHT22 Sensor Using with Arduino
HTML-код
- Опубликовано: 5 сен 2024
- In this tutorial we will learn how to use the DHT11 or the DHT22 sensor for measuring temperature and humidity. And we will see the value output of the DHT sensors on both the serial monitor and the LCD screen.The LCD screen component is optional. With this tutorial you can also print on a serial monitor. Code and circuit diagram are compatible within both sensors.
Required Hardware:
Arduino Board :
goo.gl/Rqc5w2
amzn.to/2LZr6t4
DHT11:
goo.gl/n9qv8K
amzn.to/39qXnC6
DHT22:
goo.gl/W5Qo9p
amzn.to/31tNK13
LCD Display:
goo.gl/SxH8Jx
amzn.to/3bbBgzu
Potentiometer:
goo.gl/MPwcEM
amzn.to/3dlgYq1
Breadboard :
goo.gl/GjpqVW
amzn.to/3qxLxwm
Jumper Wires
amzn.to/3doetmT
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
The DHT sensors have four pins, VCC, GND, data pin and a not connected pin which has no usage.
From left to right:
1 - VCC (5V)
2 - Signal
3 - NC Not connected
4 - GND
DHT Sensors Library:
playground.ardu...
Download Source Code: create.arduino...
Social Media:
/ mertarduino
/ mertarduino
Source Code: create.arduino.cc/editor/mertarduinotech/37dd464f-49b6-45ab-8f90-09915ea3b144/preview
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Hello,
that it a error message : "no matching function call to 'DHT::DHT()'
thanks Mr.Mert ,previously I have problems with this module, your video fixed it
Great tutorial any chance of a follow up showing how to add a fan controlled by this setup?
Thank you so much. Your project helped me a lot. Keep doing Various Arduino based projects. :)
Can you please help!!!!!
Error saying - "DHT11 is not declared in the scope"
Your efforts will be highly appreciated
perfect videoo!!! thanks a lot!!
why does the data line need to be high? doesnt the module already get the power supply from the +5V pin?
thx for all your videos they helped me i lot and wanna ask for help "how can i send data sensor's to excel "
Hello . Thank you for your wonderful explanation.
I have a question:
Are the sensors like LM35 and DH11-22 accurate and reliable?
Are it need to calibrate?
thank you
wow it's very helpfull thanks, btw what app do u use to draw that chart ?
May you give me an example for a touch screen display, if you have time?
Where did you create the fritzing diagram?
Any idea how to get it to show Fahrenheit on the LCD?
Me gusto mucho el vídeo, Saludos desde México
do we have any other better product for accurate than dht 22 for audrino uno?
Very helpful video. I want to know 1 thing that, if i want to glow an LED when temperature goes above than 40 degree. Can you please send me the code for it?
1.sorum direnç değeri nedir okuyamadım
2.sorum program internette yazdigin source codu ise ekranda tek çizgi çıkıyor
And please this
DHT11:14:24: error: no matching function for call to 'DHT::DHT(int, const char [6])'
what is the value of the resistor that have been used on the DHT11
10k
can u pls make a video using i2c and lcd and dth11 pls
Hello,
I am having a problem with my setup: I have connected a DHT11 to an Arduino Nano (properly, I think, resistor included. It actually worked the first day, so...). Anyway, I am getting zero values of temperature and humidity, no matter which library I use. The sensor is detected correctly, but the data is always zero. As I said, it worked the first day I tried, using Arduino's DHT example. Not any more. I don't think I have changed any library version. I tried with previous ones and it doesn't work either.
Can anyone help? Thank you!
Can you create tutorial for temperature alarm?
Üstadım çok güzel bir çalışma olmuş sorum olacaktı
what software do you use for diagrams?
❤️❤️❤️❤️good work ❤️❤️
HOW CAN I FIND THE DHT11 SENSORS IN TINKERCAD?
i have a problem.....lcd display not showing in this value......why
brocum lcd ekrandan o pinleri hangi aparatla aldın bi söylersen
mantap tambah ilmu
Every other time it shows -999 instead of temperature. What should I do?
my lcd shows -999 for both the value. Whats wrong with it? i have already checked the connections. Can you help ?
thank you
copy and paste "How to Set Up the DHT11 Humidity Sensor on the arduino" in your search and try Circuit Basics video and pin out, and sketch.
fantastic
Abi direnç değerini yazabilirmisin
Why this library doesnt work? i tryed like 2 weeks to run stupid humidity and temperature sensor and i am frustrated... No example works and i cant compile anything... please help... its like this library doest have any of these functions i tryed to find it on github but nothing... no trace of these funcions. and i am not the only one...
here is the error from example:
Arduino: 1.6.12 (Windows 10), Vývojová doska:"Arduino/Genuino Uno"
C:\Users\Majo\AppData\Local\Temp\ccNUwVrb.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_DHTtester.ino.cpp.o.1731':
ccNUwVrb.ltrans0.o:(.text.startup+0x62): undefined reference to `DHT::DHT(unsigned char, unsigned char, unsigned char)'
C:\Users\Majo\AppData\Local\Temp\ccNUwVrb.ltrans0.ltrans.o: In function `main':
ccNUwVrb.ltrans0.o:(.text.startup+0x176): undefined reference to `DHT::begin()'
ccNUwVrb.ltrans0.o:(.text.startup+0x1ce): undefined reference to `DHT::readHumidity(bool)'
ccNUwVrb.ltrans0.o:(.text.startup+0x1de): undefined reference to `DHT::readTemperature(bool, bool)'
ccNUwVrb.ltrans0.o:(.text.startup+0x1f2): undefined reference to `DHT::readTemperature(bool, bool)'
ccNUwVrb.ltrans0.o:(.text.startup+0x244): undefined reference to `DHT::computeHeatIndex(float, float, bool)'
ccNUwVrb.ltrans0.o:(.text.startup+0x262): undefined reference to `DHT::computeHeatIndex(float, float, bool)'
collect2.exe: error: ld returned 1 exit status
exit status 1
i tryed SimpleDHT library but its just for DHT11 but it works...
schade das der Link nicht funktioniert...
Source Code paylaşır mısnız
On the back of my LCD there is 4 pins GND, VCC, SDA, and SCL. do i just use the pins you showed in the video.
No. What you have is an "I2C"-interface on your LCD. Google it for info on how to connect and use it.
nice
Thanks so much I was so frustrated how to download this library thanks
kardeşim neden türkçe kaynak yapmıyorsun hem iyi bir kaynak olurdu ha illa yabancı da yapmak istersen ing alt yazı koyarsın
Can you please do an RFID tutorial
Thank you :-)
plaese code DHT22 Sensor Using with Arduino with fan
😊
sang name pls 😊
Abi sen türkmüsün
Abi bunun Türkçe halini yapar mısın kanalının kalitesi çok iyi abone oldum kanalında ayrıca her videonun türkçesini yaparsan abonen artacak 'BURALAR DEĞERLENİR' benden söylemesin .şimdiden teşekkürler
first comment :D
Did you really need to have the music?