DHT22 and DHT lib
-
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
-
@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
-
-
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.
-
@kurtsejr yes that's correct. You'll need to follow the instructions on the build page (outlined in blue below):
-
Thanks @mfalkvidd , it works as you described. Great! - I will then move on
/Kurt
-
@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 !
-
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...
Suggested Topics
-
Welcome
Announcements • • hek