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

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 มิ.ย. 2024
  • 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:
    github.com/makersdigest/T03-D...
    Parts that were used in this video:
    DHT11: amzn.to/2S9tgEg
    DHT22: amzn.to/2UUOozR
    Arduino: amzn.to/2QgREHv
    Rapsberry Pi Kit: amzn.to/2Piy7kn
    Jumper Wires: amzn.to/2PkWxcX
    Breadboard: amzn.to/2QikbMQ
    Now go get creative! Share what you have made with me. I can be found at
    ● Facebook: / makersdigest
    ● Instagram: / makersdigest
    ● Twitter: / makersdigest
    ● Patreon: / makersdige
    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
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @stephan4198
    @stephan4198 4 ปีที่แล้ว +1

    thanks! this is very helpful!

  • @matthewward5892
    @matthewward5892 4 ปีที่แล้ว +1

    Great video .Easy to follow and well explained thankyou

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

    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

  • @zimmzero
    @zimmzero 4 ปีที่แล้ว +2

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

  • @jamesonvandusen46
    @jamesonvandusen46 5 ปีที่แล้ว +1

    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?

    • @makersdigest4752
      @makersdigest4752  5 ปีที่แล้ว +1

      Thanks! Sure, that would be a decent use for these. I've also used them for monitoring ambient temperature in the house, monitoring the temp & humidity of my 3d printing filament etc. They are best for scenarios where you are measuring ambient areas. There are other temp sensors that that are good for isolated measurement, for something like monitoring the temperature of beer while brewing, cooking, coffee roasting etc. I am going to cover those in the future as well.

    • @Lavabo-Quebec
      @Lavabo-Quebec 3 ปีที่แล้ว

      @@makersdigest4752 are you using some kind of broker to gather the data? Mosquitto? did you made a video about it

  • @mizery95
    @mizery95 4 ปีที่แล้ว +2

    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?

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

    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 !

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

    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.

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

      I am sorry I figured by myself. There are plenty of tutos on what is a pull up resistor on youtube.

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

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

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

    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?

  • @degrootadrianus
    @degrootadrianus 4 ปีที่แล้ว

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