Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Announcements
  3. 💬 Air Humidity Sensor - DHT

💬 Air Humidity Sensor - DHT

Scheduled Pinned Locked Moved Announcements
149 Posts 48 Posters 47.9k Views 38 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • OliO Offline
    OliO Offline
    Oli
    wrote on last edited by
    #32

    Could someone explain me why "Must be >1000ms for DHT22 and >2000ms for DHT11" when sampling rate is once per sec for DHT11 (once per 1000ms) and twice per sec for DHT22 (once per 500ms)?

    1 Reply Last reply
    0
    • AmputA Offline
      AmputA Offline
      Amput
      wrote on last edited by
      #33

      In Wiring Things Up and screen are used DATA_PIN 3, but in example is wrote #define DHT_DATA_PIN 2 :-) ...please correct it.

      hekH 1 Reply Last reply
      1
      • AmputA Amput

        In Wiring Things Up and screen are used DATA_PIN 3, but in example is wrote #define DHT_DATA_PIN 2 :-) ...please correct it.

        hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #34

        @Amput,

        Thanks, updated.

        1 Reply Last reply
        1
        • skywatchS Offline
          skywatchS Offline
          skywatch
          wrote on last edited by
          #35

          @hek

          No it is not fixed!

          mfalkviddM 1 Reply Last reply
          0
          • hekH hek

            This thread contains comments for the article "Air Humidity Sensor - DHT" posted on MySensors.org.

            ramoncarranzaR Offline
            ramoncarranzaR Offline
            ramoncarranza
            wrote on last edited by
            #36

            @hek how do I change fro C to F?

            mfalkviddM 1 Reply Last reply
            0
            • skywatchS skywatch

              @hek

              No it is not fixed!

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #37

              @hek I think @skywatch meant that the text is updated, but not the picture. The picture is still using pin 3.

              1 Reply Last reply
              0
              • ramoncarranzaR ramoncarranza

                @hek how do I change fro C to F?

                mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by
                #38

                @ramoncarranza set your controller to use non-metric.

                1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #39

                  Yes, didn't see that one @mfalkvidd. Hmm.. Not sure I have the source photoshop psd available any more.

                  mfalkviddM 1 Reply Last reply
                  0
                  • hekH hek

                    Yes, didn't see that one @mfalkvidd. Hmm.. Not sure I have the source photoshop psd available any more.

                    mfalkviddM Offline
                    mfalkviddM Offline
                    mfalkvidd
                    Mod
                    wrote on last edited by
                    #40

                    @hek you mean you delete files? :fearful:

                    1 Reply Last reply
                    0
                    • hekH Offline
                      hekH Offline
                      hek
                      Admin
                      wrote on last edited by
                      #41

                      Ha, probably not, just a matter of find it. :sweat:

                      1 Reply Last reply
                      0
                      • skywatchS Offline
                        skywatchS Offline
                        skywatch
                        wrote on last edited by
                        #42

                        What @Skywatch meant was that "#define DHT_DATA_PIN 2" is STILL in the example code on this page. Anyone who even gets as far as working it all out and wiring it all up and it still it won't work like that! - Not when it needs to be connected to PIN 3 instead (esp if the NRF is using pin 2, which is likely).
                        Happy New Year to you all! :)

                        1 Reply Last reply
                        1
                        • EfflonE Offline
                          EfflonE Offline
                          Efflon
                          wrote on last edited by
                          #43

                          Just a note, tried following this for adding a DHT11 to the ESP8266 MQTT gateway. The MySensors example lib does not work with esp8266 (temperatures around 17000+). However the adafruit DHT library 1.3.0 works just fine.Any reason that couldn't be used here?

                          1 Reply Last reply
                          0
                          • hekH Offline
                            hekH Offline
                            hek
                            Admin
                            wrote on last edited by
                            #44

                            Nope. Most of the examples were only verified using Atmega. If you find a better lib working on both platforms, please create a pull request including the updated example and library.

                            1 Reply Last reply
                            0
                            • EfflonE Offline
                              EfflonE Offline
                              Efflon
                              wrote on last edited by
                              #45

                              Ok! I just have to verify it on Atmega first. I'll be back..

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                MLs
                                wrote on last edited by
                                #46

                                DHT sketch version 2.1.0 no data i IDE seiel

                                And if i use DHT example sketch then I get data temp / hum

                                Did not have permission to post in the forum

                                1 Reply Last reply
                                0
                                • F Offline
                                  F Offline
                                  flopp
                                  wrote on last edited by flopp
                                  #47

                                  @hek @mfalkvidd I read that you discussed about PIN 2 and 3.

                                  Code say PIN 2, Wiring things up say PIN 2 and picture shows PIN 3.

                                  It can't use PIN 2 or can it, PIN 2 is used by the radio, or am I to tired :)?

                                  meanmrgreenM 1 Reply Last reply
                                  1
                                  • F flopp

                                    @hek @mfalkvidd I read that you discussed about PIN 2 and 3.

                                    Code say PIN 2, Wiring things up say PIN 2 and picture shows PIN 3.

                                    It can't use PIN 2 or can it, PIN 2 is used by the radio, or am I to tired :)?

                                    meanmrgreenM Offline
                                    meanmrgreenM Offline
                                    meanmrgreen
                                    wrote on last edited by
                                    #48

                                    @flopp

                                    thats the irq pin in the radio post.
                                    Not used by the radio

                                    F 1 Reply Last reply
                                    0
                                    • meanmrgreenM meanmrgreen

                                      @flopp

                                      thats the irq pin in the radio post.
                                      Not used by the radio

                                      F Offline
                                      F Offline
                                      flopp
                                      wrote on last edited by flopp
                                      #49

                                      @meanmrgreen said:

                                      @flopp

                                      thats the irq pin in the radio post.
                                      Not used by the radio

                                      I must have missed something or forgot. Is PIN 2 only used on Gateways?
                                      Is it different between MyS version 1.x and 2.x?

                                      1 Reply Last reply
                                      0
                                      • hekH Offline
                                        hekH Offline
                                        hek
                                        Admin
                                        wrote on last edited by
                                        #50

                                        Tried to follow the history on the humidity file back in time on github.
                                        At some point (2.0 release) the example was switched from HumiditySensor.ino (using pin 3) to DhtTemperatureAndHumiditySensor.ino (pin 2) created by @mozzbozz.

                                        Not sure why the pin was switched, but you can run without the radio/IRQ-pin connection as long as not activating the MY_RX_MESSAGE_BUFFER_FEATURE.

                                        F 1 Reply Last reply
                                        0
                                        • hekH hek

                                          Tried to follow the history on the humidity file back in time on github.
                                          At some point (2.0 release) the example was switched from HumiditySensor.ino (using pin 3) to DhtTemperatureAndHumiditySensor.ino (pin 2) created by @mozzbozz.

                                          Not sure why the pin was switched, but you can run without the radio/IRQ-pin connection as long as not activating the MY_RX_MESSAGE_BUFFER_FEATURE.

                                          F Offline
                                          F Offline
                                          flopp
                                          wrote on last edited by
                                          #51

                                          @hek
                                          All other examples are using PIN 3. Wouldn't it be easier to use PIN 3 for all examples? Maybe we shall wait and see if mozzbozz know why he changed to PIN 2.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          15

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular