1 2 3 4 5
var dht = require("DHT22").connect(C11); dht.read(function (data) { console.log("Temp is "+data.temp.toString()+" and RH is "+data.rh.toString()); });