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 • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
BMP280 SPI Adafruit
My Project • 24 Aug 2016, 01:56 • Matt 23 Jan 2025, 16:25 -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21 -
Interface-board-for-remote-control
My Project • 9 days ago • OldSurferDude 9 days ago -
Nb of possible nodes in a mysensors networks with domoticz
My Project • 13 Jan 2025, 18:10 • GLAB 16 Feb 2025, 01:11 -
Radar motion sensor
My Project • 10 days ago • suresh sharma 10 days ago