1.0.1 • Published 12 months ago
orangepi-dht11 v1.0.1
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 }