orangepi-dht11
v1.0.1
Published
## Before Install ```bash git clone https://github.com/zhaolei/WiringOP.git -b h3
Downloads
10
Maintainers
Readme
Orange pi DHT11 sensor
Before Install
git clone https://github.com/zhaolei/WiringOP.git -b h3
cd WiringOP
chmod +x ./build
sudo ./build
Usage
const dht11 = require(`orangepi-dht11`);
const pin = 7;
const result = dht11(pin);
console.log(result);
// { error: '', temperature: 27.600000381469727, humidity: 44 }