{"repo":"momenso/node-dht-sensor","free":true,"listed":false,"github":"https://github.com/momenso/node-dht-sensor","clone":"git clone https://github.com/momenso/node-dht-sensor.git","description":"Node.js Humidity and Temperature sensor addon","language":"C","stars":316,"topics":["raspberry-pi","nodejs","dht22","dht11"],"license":"LGPL-3.0","category":"self-hosted-apps","readme_excerpt":"node-dht-sensor A simple node.js module for reading temperature and relative humidity using a compatible DHT sensor. Installation & Hardware Requirements For most standard Linux systems and older Raspberry Pi models (Pi 1 through 4), you can install the module directly via npm: Modern Raspberry Pi (Pi 5 / Debian 12+) — libgpiod When running node-dht-sensor on a modern architecture like the Raspberry Pi 5, the legacy BCM2835 library is physically incompatible with the new RP1 southbridge chip. You must compile the module using libgpiod . libgpiod v2 is the highly preferred library. The v2 API allows this module to use an OPEN DRAIN configuration, enabling fast, user-space polling of the sensor. Before installing the module, you must install the libgpiod development headers and pkg-config . Our build system uses pkg-config to auto-detect whether your OS provides libgpiod v1 or v2 at build time and compiles the correct C++ code paths automatically. For Debian-based systems (like Raspberry Pi OS): Then, explicitly tell npm to use the libgpiod API during installation: Older Raspberry Pi (Pi 1 through Pi 4) — BCM2835 If you omit the --use libgpiod=true flag, node-dht-sensor defaults to using the direct-memory BCM2835 library. This bypasses the Linux kernel entirely for nanosecond-level read speeds and is highly recommended for older boards where the CPU manages the GPIO pins directly. Usage To initialize the sensor, you have to specify the sensor type and the GPIO pin where the sen","default_branch":null,"files":null,"tree":[],"storefront":"/r/momenso","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/momenso/node-dht-sensor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}