Socket
Socket
Sign inDemoInstall

dht-drivers

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dht-drivers

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


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

dht-drivers

node.js module to read the DHT series of humidity and temperature sensors.

Example

const dht = require('dht-drivers');
const current = dht.read(2, 11, 15); // 2: RaspberryPi (platform ID), 11: DHT11 (module type), 15: (pin)

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

Reference

https://github.com/adafruit/Adafruit_Python_DHT

Keywords

FAQs

Last updated on 30 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc