Testing a DHT22 Temp/Humidity Sensor on a Raspberry Pi

preview_player
Показать описание

HiLetgo 2pcs DHT22/AM2302 Digital Temperature And Humidity Sensor Module Temperature Humidity Monitor Sensor Replace SHT11 SHT15 for Arduino Electronic Practice DIY (Amazon Affiliate)

Please follow me!

Visit my Amazon Storefront!

Support my channel!

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

You did well to get it to work. I got error after error. I wish it had been as plain-sailing as it was for you.

WhitbyStuff
Автор

The reason for the delay is that the sensor sometimes gives None readings and the code is not printing those Nones. So it's not delay in reading but omission of invalid readings.I don't know why the Nones happen but it's not a fault with the adafruit library because I get the same thing (actually worse) when I use the dht11 library from PyPI

Sam-tgii
Автор

Thanks, it worked. With other tutorials I kept getting buffer error.

Sideeffection
Автор

It doesn't work properly anymore. The adafruit started raising an runtime error "Unknown platform". Uninstalled the library and when trying to install it again it errors out saying it "Could not detect if running on the Raspberry Pi or Beaglebone Black"

bbblop
Автор

Thank you I really solved it because of your video.

이가영-tm
Автор

Have you tried to use "read" function insted of "read_retry"?

criticaltechcode
Автор

the issue with csv file is because the file is already open with a process (python), to fix it you wanna open the file, write and close it.

assuke
Автор

Hi
@RickMakes Can i control the temperature and the humidity of a warehouse of 1500m2 with such devices (sensors and raspberri pi).
Also, which sensors and raspberri pi models do you recommend for such a warehouse?

medaho
Автор

Error to install
Traceback (most recent call last):
File "/home/pi/humidity.py", line 1, in <module>
import Adafruit_DHT
ModuleNotFoundError: No module named 'Adafruit_DHT'

Dozentt
Автор

Maybe you have to sleep for some seconds between loops

miquelmarti