Hello All,
Long time reader, first time poster.
I've been building my-sensors in combo with Domoticz for a while now , and this project is one of my favorites.
I can confirm that the fritzing schema is correct, i checked it against the one i build. (whish i had the schema earlier, it would have been so much easier ;-))
I used the followin library from Rob Tillaart for the DHT22 (http://playground.arduino.cc/Main/DHTLib / https://github.com/RobTillaart/Arduino/tree/master/libraries/DHTlib) because the standard was not working...
Change line 37 to dht DHT;
comment out line 51
From line 78 i changed the code to this :
delay(2000);
int chk = DHT.read22(HUMIDITY_SENSOR_DIGITAL_PIN);
temp = DHT.temperature;
//Serial.print("Temperature DHT :");
//Serial.println(temp);
if (isnan(temp)) {
lastTemp = -1;
} else if (temp != lastTemp) {
lastTemp = temp;
if (!metric) {
temp = temp * 1.8 + 32.0;
}
gw.send(msgTemp.set(temp, 1));
}
hum = DHT.humidity;
if (isnan(hum)) {
lastHum = -1;
} else if (hum != lastHum) {
lastHum = hum;
gw.send(msgHum.set(hum, 1));
}
And it is working like a charm.
Now i ordered one of these : Wind Sensor
I want to trie to get it working with this build.
And indeed the lamp is stil available Solar Lamp
Hope this helps,
With Regard's
Peer