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. My Project
  3. DHT22 and DHT lib

DHT22 and DHT lib

Scheduled Pinned Locked Moved My Project
8 Posts 4 Posters 455 Views 4 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.
  • K Offline
    K Offline
    Kurtsejr
    wrote on last edited by
    #1

    Hi
    I'm new to version 2.x, has done sensors/gateways to version 1.x system. So I restarted myself in using version 2.x. Made the IDE installation on WIN10 via Windows store, and downloaded the mysensors 2.3.1 via IDE - works great!.
    For starting I found https://www.mysensors.org/build/humidity just for testing that the enviroment are working, discovered that the DHT lib is not part of mysensors anymore, found it ( https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip) as the old lib and added this.

    But I get a number of compilation error e.g.:
    "undefined reference to `DHT::getHumidity()'"

    So it seems that I'm using a wrong DHT libary version, I was looking at github - but it seems already to be converted to MuSensors version 2.x

    Strange ... hope someone can pinpoint me to the correct libary

    /Kurt

    badmannenB 1 Reply Last reply
    0
    • K Kurtsejr

      Hi
      I'm new to version 2.x, has done sensors/gateways to version 1.x system. So I restarted myself in using version 2.x. Made the IDE installation on WIN10 via Windows store, and downloaded the mysensors 2.3.1 via IDE - works great!.
      For starting I found https://www.mysensors.org/build/humidity just for testing that the enviroment are working, discovered that the DHT lib is not part of mysensors anymore, found it ( https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip) as the old lib and added this.

      But I get a number of compilation error e.g.:
      "undefined reference to `DHT::getHumidity()'"

      So it seems that I'm using a wrong DHT libary version, I was looking at github - but it seems already to be converted to MuSensors version 2.x

      Strange ... hope someone can pinpoint me to the correct libary

      /Kurt

      badmannenB Offline
      badmannenB Offline
      badmannen
      wrote on last edited by
      #2

      @kurtsejr there is in example for the dht 11 and 22 on the mysensors page. I'll see if I can give you a link. I tried it yesterday and it works

      rPi 3 - UNO R3 - Mini - Nano - custom

      1 Reply Last reply
      0
      • badmannenB Offline
        badmannenB Offline
        badmannen
        wrote on last edited by
        #3

        Here : https://www.mysensors.org/build/humidity

        rPi 3 - UNO R3 - Mini - Nano - custom

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kurtsejr
          wrote on last edited by
          #4

          Thanks @badmannen
          Yes I'm using the script you link to, but compiling it tell that it can't find DHT.h, so I was looking for the DHT libray, It seems that this library is not part of MySensors 2.x download when you from the IDE install library's.

          mfalkviddM badmannenB 2 Replies Last reply
          0
          • K Kurtsejr

            Thanks @badmannen
            Yes I'm using the script you link to, but compiling it tell that it can't find DHT.h, so I was looking for the DHT libray, It seems that this library is not part of MySensors 2.x download when you from the IDE install library's.

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

            @kurtsejr yes that's correct. You'll need to follow the instructions on the build page (outlined in blue below):
            0_1574086119585_898A63A3-6F28-47A9-A494-579FD4995587.jpeg

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Kurtsejr
              wrote on last edited by
              #6

              Thanks @mfalkvidd , it works as you described. Great! - I will then move on :-)

              /Kurt

              1 Reply Last reply
              1
              • K Kurtsejr

                Thanks @badmannen
                Yes I'm using the script you link to, but compiling it tell that it can't find DHT.h, so I was looking for the DHT libray, It seems that this library is not part of MySensors 2.x download when you from the IDE install library's.

                badmannenB Offline
                badmannenB Offline
                badmannen
                wrote on last edited by
                #7

                @kurtsejr Aaa ok.. yes that is true , I installed all that extra from start so that issue did not appear . good you got it solved !

                rPi 3 - UNO R3 - Mini - Nano - custom

                cneroneC 1 Reply Last reply
                1
                • badmannenB badmannen

                  @kurtsejr Aaa ok.. yes that is true , I installed all that extra from start so that issue did not appear . good you got it solved !

                  cneroneC Offline
                  cneroneC Offline
                  cnerone
                  wrote on last edited by
                  #8

                  Hi,
                  I wrote an updated version that uses the standard dht adafruit library.
                  I posted on github site (https://github.com/cnerone/MySensorsArduinoExamples/commit/922cdaaff772db3a59aef8d784d4ef4e43c9a50a) but its pubblication it's still in progress...
                  I run it for one year and it runs very good with no issues...

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


                  25

                  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