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. General Discussion
  3. DHT sensor for Mysensors V2

DHT sensor for Mysensors V2

Scheduled Pinned Locked Moved General Discussion
10 Posts 4 Posters 5.6k Views 3 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.
  • mehrdad.silataniM Offline
    mehrdad.silataniM Offline
    mehrdad.silatani
    wrote on last edited by
    #1

    Hi,

    I was wondering if someone can help me to setup a DHT sensor for mysensors V2. For some reason I dont have it inside my mysensors library ! Also, the video and the example sketch on the website is for the older version.

    Cheers,
    Mehrdad

    sundberg84S 1 Reply Last reply
    0
    • mehrdad.silataniM mehrdad.silatani

      Hi,

      I was wondering if someone can help me to setup a DHT sensor for mysensors V2. For some reason I dont have it inside my mysensors library ! Also, the video and the example sketch on the website is for the older version.

      Cheers,
      Mehrdad

      sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #2

      @mehrdad.silatani - Hi!
      Because it is dependent of an external library it was moved to a seperat folder for 2.0.

      https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples/DhtTemperatureAndHumiditySensor

      Lib: https://github.com/mysensors/MySensorsArduinoExamples/tree/master/libraries/DHT

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      mehrdad.silataniM 1 Reply Last reply
      1
      • sundberg84S sundberg84

        @mehrdad.silatani - Hi!
        Because it is dependent of an external library it was moved to a seperat folder for 2.0.

        https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples/DhtTemperatureAndHumiditySensor

        Lib: https://github.com/mysensors/MySensorsArduinoExamples/tree/master/libraries/DHT

        mehrdad.silataniM Offline
        mehrdad.silataniM Offline
        mehrdad.silatani
        wrote on last edited by
        #3

        @sundberg84 Fantastic ! It worked very well ! Thanks for quick response !

        1 Reply Last reply
        2
        • mehrdad.silataniM Offline
          mehrdad.silataniM Offline
          mehrdad.silatani
          wrote on last edited by
          #4

          Ok, I have one more general question !

          I have experience in working with Arduinos alone, and most of the time I kinda always manage to understand the example sketches, then expand it, modify it or write another one from scratch to my specifications. But when it comes to Mysensors IDEs, I am really struggling to fully understand them and tweak them ... All those "CHILD_ID_... , S_... , V_... , Void presentation (), ......"

          Is there any guide available that I can start reading up ?

          Cheers,
          Mehrdad

          sundberg84S 1 Reply Last reply
          0
          • mehrdad.silataniM mehrdad.silatani

            Ok, I have one more general question !

            I have experience in working with Arduinos alone, and most of the time I kinda always manage to understand the example sketches, then expand it, modify it or write another one from scratch to my specifications. But when it comes to Mysensors IDEs, I am really struggling to fully understand them and tweak them ... All those "CHILD_ID_... , S_... , V_... , Void presentation (), ......"

            Is there any guide available that I can start reading up ?

            Cheers,
            Mehrdad

            sundberg84S Offline
            sundberg84S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by sundberg84
            #5

            @mehrdad.silatani - well, since we are in the middle of 1.6 and 2.0 it might be a bit messy at the moment. You have the API and all the technial stuff here for all versions: https://www.mysensors.org/download/

            Aslo there is a great tutorial how to combine sketches... but I cant find it :(

            Controller: Proxmox VM - Home Assistant
            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

            mfalkviddM 1 Reply Last reply
            0
            • sundberg84S sundberg84

              @mehrdad.silatani - well, since we are in the middle of 1.6 and 2.0 it might be a bit messy at the moment. You have the API and all the technial stuff here for all versions: https://www.mysensors.org/download/

              Aslo there is a great tutorial how to combine sketches... but I cant find it :(

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

              @sundberg84 could https://forum.mysensors.org/topic/115/implementing-multiple-sensors/4 be the one?

              sundberg84S 1 Reply Last reply
              1
              • mfalkviddM mfalkvidd

                @sundberg84 could https://forum.mysensors.org/topic/115/implementing-multiple-sensors/4 be the one?

                sundberg84S Offline
                sundberg84S Offline
                sundberg84
                Hardware Contributor
                wrote on last edited by
                #7

                @mfalkvidd said:

                @sundberg84 could https://forum.mysensors.org/topic/115/implementing-multiple-sensors/4 be the one?

                YES! Thank you!

                Controller: Proxmox VM - Home Assistant
                MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                1 Reply Last reply
                2
                • Tagore.PDET Offline
                  Tagore.PDET Offline
                  Tagore.PDE
                  wrote on last edited by
                  #8

                  Anyone tried that?
                  i m getting error with dht.readSensor.

                  Arduino: 1.6.9 (Windows 7), Board: "Arduino/Genuino Uno"
                  
                  WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
                  C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino: In function 'void loop()':
                  
                  GwSerial.v.0.3:198: error: no matching function for call to 'DHT::readSensor(bool)'
                  
                     dht.readSensor(true);
                  
                                        ^
                  
                  C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino:198:22: note: candidate is:
                  
                  In file included from C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino:38:0:
                  
                  C:\Program Files (x86)\Arduino\libraries\DHT/DHT.h:83:8: note: void DHT::readSensor()
                  
                     void readSensor();
                  
                          ^
                  
                  C:\Program Files (x86)\Arduino\libraries\DHT/DHT.h:83:8: note:   candidate expects 0 arguments, 1 provided
                  
                  Multiple libraries were found for "DHT.h"
                   Used: C:\Program Files (x86)\Arduino\libraries\DHT
                   Not used: C:\Users\Usuario\Documents\Arduino\libraries\DHT_sensor_library
                  exit status 1
                  no matching function for call to 'DHT::readSensor(bool)'
                  
                  
                  mfalkviddM 1 Reply Last reply
                  0
                  • Tagore.PDET Tagore.PDE

                    Anyone tried that?
                    i m getting error with dht.readSensor.

                    Arduino: 1.6.9 (Windows 7), Board: "Arduino/Genuino Uno"
                    
                    WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
                    C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino: In function 'void loop()':
                    
                    GwSerial.v.0.3:198: error: no matching function for call to 'DHT::readSensor(bool)'
                    
                       dht.readSensor(true);
                    
                                          ^
                    
                    C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino:198:22: note: candidate is:
                    
                    In file included from C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino:38:0:
                    
                    C:\Program Files (x86)\Arduino\libraries\DHT/DHT.h:83:8: note: void DHT::readSensor()
                    
                       void readSensor();
                    
                            ^
                    
                    C:\Program Files (x86)\Arduino\libraries\DHT/DHT.h:83:8: note:   candidate expects 0 arguments, 1 provided
                    
                    Multiple libraries were found for "DHT.h"
                     Used: C:\Program Files (x86)\Arduino\libraries\DHT
                     Not used: C:\Users\Usuario\Documents\Arduino\libraries\DHT_sensor_library
                    exit status 1
                    no matching function for call to 'DHT::readSensor(bool)'
                    
                    
                    mfalkviddM Offline
                    mfalkviddM Offline
                    mfalkvidd
                    Mod
                    wrote on last edited by mfalkvidd
                    #9

                    @Tagore.PDE looks similar to https://forum.mysensors.org/topic/4672/dht-sketch-version-2-0-0-error-solved/ - see if using the dht version in the MySensors examples helps.

                    1 Reply Last reply
                    1
                    • Tagore.PDET Offline
                      Tagore.PDET Offline
                      Tagore.PDE
                      wrote on last edited by
                      #10

                      Yes, thx. same issue.

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


                      11

                      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