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.
  • meanmrgreenM Offline
    meanmrgreenM Offline
    meanmrgreen
    wrote on last edited by
    #30

    Finaly got it to compile.
    I tried the library link above but no go, cleared out everything about ardouino on the pc, no go.

    I finaly stubled onto this:
    https://github.com/mysensors/MySensorsArduinoExamples
    Downloaded all the expample libraries, loaded the scetch and it worked!

    Something is up with the linked library on this page i think

    mfalkviddM 1 Reply Last reply
    0
    • meanmrgreenM meanmrgreen

      Finaly got it to compile.
      I tried the library link above but no go, cleared out everything about ardouino on the pc, no go.

      I finaly stubled onto this:
      https://github.com/mysensors/MySensorsArduinoExamples
      Downloaded all the expample libraries, loaded the scetch and it worked!

      Something is up with the linked library on this page i think

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

      @meanmrgreen the link pointed to a folder on GitHub. If that folder is downloaded, you get the MySensorsExamples. But in that folder, there is also a link to the original DHT library. If that link is followed, the wrong library will be downloaded.

      Several people have been bitten by this so I have now changed the link to point directly to the MySensorsExamples zip file.

      1 Reply Last reply
      0
      • 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 Online
            hekH Online
            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 Online
                      hekH Online
                      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 Online
                          hekH Online
                          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 Online
                                hekH Online
                                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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          16

                                          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