Hi,
I'm having a bit of trouble getting my DH22 to work. My code is pretty simple
var dht = require("DHT22").connect(D5);
dht.read(function (a) {
console.log("Temp is "+a.temp.toString()+" and RH is "+a.rh.toString());
});
the result is WARNING: Unable to set watch. You may already have a watch on a pin with the same number (eg. A0 and B0),
or this pin cannot be used with watch
I have tried a few pins with the same result. any suggestions would be welcome
Search Options
Types to Display
Espruino
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
I'm having a bit of trouble getting my DH22 to work. My code is pretty simple
the result is WARNING: Unable to set watch. You may already have a watch on a pin with the same number (eg. A0 and B0),
or this pin cannot be used with watch
I have tried a few pins with the same result. any suggestions would be welcome