@thehighestbit/node-red-contrib-hdc302x 1.0.0
Node-RED node for Texas Instruments HDC302x temperature and humidity sensor
node-red-contrib-hdc302x
A Node-RED node for reading temperature and humidity data from Texas Instruments HDC302x sensors over I2C.
Supported Sensors
- HDC3020
- HDC3021
- HDC3022
Installation
cd ~/.node-red
npm install @thehighestbit/node-red-contrib-hdc302x
Configuration
| Property | Description |
|---|---|
| I2C Address | Sensor address: 0x44, 0x45, 0x46, or 0x47 |
| I2C Bus | I2C bus number (default: 1) |
| Read Interval | Polling interval in ms (minimum 1000ms). Leave blank to disable polling. |
Usage
The node outputs temperature and humidity readings as a JSON payload:
{
"payload": {
"temperature": 25.5,
"humidity": 45.2
},
"topic": "hdc302x/0x44"
}
Triggering Reads
- Automatic polling: Set a read interval to poll the sensor automatically
- Manual trigger: Send any message to the node input to trigger an immediate read