Testing a DHT22 Temp/Humidity Sensor on a Raspberry Pi

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 มี.ค. 2021
  • Article on DHT22: pimylifeup.com/raspberry-pi-h...
    HiLetgo 2pcs DHT22/AM2302 Digital Temperature And Humidity Sensor Module Temperature Humidity Monitor Sensor Replace SHT11 SHT15 for Arduino Electronic Practice DIY (Amazon Affiliate)
    US: amzn.to/3c8SY8y
    Raspberry Pi Playlist: • Raspberry Pi
    Please follow me!
    / rickmakes
    / rickmakes
    Visit my Amazon Storefront!
    www.amazon.com/shop/rickmakes
    www.amazon.co.uk/shop/rickmakes
    www.amazon.ca/shop/rickmakes
    Support my channel!
    www.rickmakes.com/paypal_dona...
    #raspberrypi #dht22
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 15

  • @user-jg4qs8ee2j
    @user-jg4qs8ee2j ปีที่แล้ว

    Thank you I really solved it because of your video.

  • @Sideeffection
    @Sideeffection 8 หลายเดือนก่อน

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

  • @Sam-tg4ii
    @Sam-tg4ii ปีที่แล้ว +2

    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

  • @WhitbyStuff
    @WhitbyStuff ปีที่แล้ว +3

    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.

    • @tbunreall
      @tbunreall ปีที่แล้ว

      Yes I get unknown platform error

  • @bbblop4545
    @bbblop4545 2 ปีที่แล้ว +3

    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"

  • @criticaltechcode4866
    @criticaltechcode4866 2 ปีที่แล้ว

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

  • @medaho
    @medaho 3 ปีที่แล้ว

    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?

    • @Rickmakes
      @Rickmakes  3 ปีที่แล้ว +1

      You could potentially use something like this but you can get a thermostat with those features pretty cheap and they tend to be very reliable.

    • @medaho
      @medaho 3 ปีที่แล้ว

      @@Rickmakes So from my understanding,i should get more reliable sensors than the DHT22 Temp/Humidity Sensor.
      Thank you.

    • @medaho
      @medaho 3 ปีที่แล้ว

      @@Rickmakes Thank you for your reply.
      So from my understanding,I should use more reliable sensors than the DHT22 Temp/Humidity Sensor.

  • @assuke
    @assuke 2 ปีที่แล้ว

    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.

  • @Dozentt
    @Dozentt 2 ปีที่แล้ว

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

    • @shazzy6380
      @shazzy6380 2 ปีที่แล้ว

      Try this command :
      pip install Adafruit-DHT

  • @miquelmarti6537
    @miquelmarti6537 7 หลายเดือนก่อน

    Maybe you have to sleep for some seconds between loops