Humidity example sketch not working
-
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.
-
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).
-
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
-
@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
-
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.
Suggested Topics
-
Current Monitoring - How?
Hardware • 14 Jan 2015, 07:32 • Dean 17 Jan 2016, 15:50 -
💬 Air Humidity Sensor - Si7021
Announcements • 15 Sept 2018, 12:13 • hek 5 Feb 2021, 02:19 -
3-in-1 Humidity Temp and Motion
My Project • 20 Sept 2014, 21:03 • Konrad Walsh 4 Jul 2017, 06:29 -
In line humidity sensor
Hardware • 18 Jul 2019, 16:13 • dsabol 18 Jul 2019, 16:13 -
Trouble flashing Arduino Pro Mini with a sketch
Hardware • 29 Nov 2014, 13:05 • CaptainZap 9 Dec 2014, 19:56 -
Static Node ID and other Unanswered Questions
Troubleshooting • 27 Dec 2014, 02:46 • A Former User 27 Dec 2014, 13:11 -
Custom Interrupt routine for door sensor
Development • 11 Jan 2015, 16:27 • funksoulbrother 11 Jan 2015, 22:00