DH22: Unable to set watch

Posted on
  • 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

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

DH22: Unable to set watch

Posted by Avatar for user82514 @user82514