DHT11 and DHT22 Temp & Humidity Sensors on Raspberry PI and Arduino

preview_player
Показать описание
Learn how to connect the DHT11 and DHT22 Temperature & Humidity Sensors to a Raspberry PI and Arduino. We cover all the connections for both sensors on both hardware platforms as well as provide and review the code to get them working!

Check out the Github page for all of the code we used, pinouts and connection diagrams.

Code on Github:

Parts that were used in this video:

Now go get creative! Share what you have made with me. I can be found at

If you liked this video, please consider subscribing. You can enable notifications for new videos when they are posted!

See ya next time!

#arduino #raspberrypi #makers
Рекомендации по теме
Комментарии
Автор

Great video .Easy to follow and well explained thankyou

matthewward
Автор

I got this error:

File "dht22.py", line 31 print 'Temperature: ({0:0.1f}C) ({1:0.1f}F) Humidity: {2:0.1f}%'.format(celsius, fahrenheit, humidity) ^ SyntaxError: invalid syntax

preslavdimitrov
Автор

How do you display the timestamp on the recorded data temp?

zimmzero
Автор

Your code is so clean! If I had these at home, I'd be able to follow along no problem.
Is the main use of these to put inside computers or something to make sure they don't overheat/ nothing's wrong?

jamesonvandusen
Автор

Great vid do you think it would’ve possible to do this with multiple sensors giving an average with a wireless network connecting them to the pi?

mizery
Автор

someone know why i have an error saying : No module named adafruit_dht
i have already install Adafruit_dht ...
if someone can help me it would be very nice !

maxencep
Автор

Hello, can you please elaborate on why you use this "pull-up resistor"? I don't understand what it is for, as it seems to bypass the sensor? Thank you in advance. I just found your channel and it will help me a lot in my current project.

luc
Автор

I'm running into the issue where the script is pushing the same temp, humidity over and over again - but when I cut, and rerun python file.py then it'll update the values, anyone know why this might be?

refatahsan
Автор

The code is full of syntax errors. I worked through them and got it to work though.

stevenmahoney
Автор

Cannot read your program on the screen, too small letters.

degrootadrianus