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. Troubleshooting
  3. Humidity example sketch not working

Humidity example sketch not working

Scheduled Pinned Locked Moved Troubleshooting
sketchhumiditysrror
5 Posts 2 Posters 3.5k Views 1 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.
  • A Offline
    A Offline
    ajachierno
    wrote on last edited by
    #1

    I am getting an error when I try and run the example humidity sketch. Error details below

    HumiditySensor copy copy copy.ino:11:5: error: no matching constructor for initialization of 'DHT'
    DHT dht;
    ^
    libraries/DHT/DHT.h:32:3: note: candidate constructor not viable: requires at least 2 arguments, but 0 were provided
    DHT(uint8_t pin, uint8_t type, uint8_t count=6);
    ^
    libraries/DHT/DHT.h:23:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided
    class DHT {
    ^
    1 error generated.

    Any one have any ideas? Pretty new to this.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      marceltrapman
      Mod
      wrote on last edited by marceltrapman
      #2

      Did you download and install all libraries that are available in the MySensors Arduino Master folder (stop running Arduino IDE, copy/paste files in library folder, start Arduino IDE).

      Fulltime Servoy Developer
      Parttime Moderator MySensors board

      I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
      I have a FABtotum to print cases.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ajachierno
        wrote on last edited by
        #3

        yes, also I have actually been trying to run it using codebender and didn't work there so then I did try doing it in the native IDE and still not working. My understanding is codebender has all the libraries built in so I am thinking it isn't a library issue, although like I said new at this so may be wrong

        M 1 Reply Last reply
        0
        • A ajachierno

          yes, also I have actually been trying to run it using codebender and didn't work there so then I did try doing it in the native IDE and still not working. My understanding is codebender has all the libraries built in so I am thinking it isn't a library issue, although like I said new at this so may be wrong

          M Offline
          M Offline
          marceltrapman
          Mod
          wrote on last edited by marceltrapman
          #4

          @ajachierno I am not sure what to say, it runs 'out of the box' here.

          Which version of the sketch are you using?

          this is where it goes wrong I guess:

          requires 1 argument, but 0 were provided class DHT
          

          Fulltime Servoy Developer
          Parttime Moderator MySensors board

          I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
          I have a FABtotum to print cases.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ajachierno
            wrote on last edited by
            #5

            I am running straight off the webpage. Actually it doesnt apear I can get any of the sketches to run using either the browser plg in or the native IDE.... :/ wishing I hadnt updated since this last set of changes.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            17

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            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