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
-
💬 Temp_Hum sensors
OpenHardware.io • 2 Jan 2019, 08:41 • openhardware.io 2 Jan 2019, 08:41 -
💬 Temperature-Humidity-Pressure Sensor
OpenHardware.io • 11 Jan 2019, 07:19 • openhardware.io 14 Jan 2019, 13:25 -
💬 Air Humidity Sensor - Si7021
Announcements • 15 Sept 2018, 12:13 • hek 5 Feb 2021, 02:19 -
Refrigeration Datta Logger (A Non MySensors Project)
My Project • 8 Nov 2014, 22:23 • RJ_Make 9 Dec 2014, 14:13 -
💬 MySensor RFM69HCW micro pcb for DHT, Si7021, CNY70, ...
OpenHardware.io • 14 Mar 2017, 09:41 • openhardware.io 13 May 2017, 21:35 -
fail presentation
Home Assistant • 17 Apr 2016, 19:51 • Luc3as 23 Apr 2016, 20:28 -
Motion Sensing sketch which is also a repeater
Troubleshooting • 18 Jan 2015, 10:07 • Dean 15 Mar 2015, 04:08 -
All in one board with apple phone charger brick wrap.
Hardware • 13 Jan 2015, 16:58 • destos 18 Apr 2015, 14:53