Skip to content

node.js module to read the DHT series of humidity and temperature sensors on a Raspberry Pi

License

Notifications You must be signed in to change notification settings

entercritical/dht-sensor

Repository files navigation

dht-sensor

node.js module to read the DHT series of humidity and temperature sensors on a Raspberry Pi 2.

Setup

$ npm install dht-sensor --save

Example

var dht = require('dht-sensor');
var current = dht.read(11, 18); // 11 : DHT11, 18 : BCM GPIO  

console.log(current.humidity);
console.log(current.temperature);

Reference

https://github.com/adafruit/Adafruit_Python_DHT

About

node.js module to read the DHT series of humidity and temperature sensors on a Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages