diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-02-23 22:11:21 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-02-23 22:11:21 +0100 |
commit | 6cb056f979f20e895930940c94b05767d081dd61 (patch) | |
tree | 9e3ece401941b735b34d090f0d76d11bf4d52d5a /code/003-dht22.js | |
parent | b44d4c151b0ebc4284122530ac3d6e5f19e15bf5 (diff) |
Some additional slides
Diffstat (limited to 'code/003-dht22.js')
-rw-r--r-- | code/003-dht22.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/code/003-dht22.js b/code/003-dht22.js new file mode 100644 index 0000000..c925120 --- /dev/null +++ b/code/003-dht22.js @@ -0,0 +1,5 @@ +var dht = require("DHT22").connect(C11); + +dht.read(function (data) { + console.log("Temp is "+data.temp.toString()+" and RH is "+data.rh.toString()); +});
\ No newline at end of file |