A Node-RED node that provides access to the SGP30 air quality sensor.
This package uses Xoblite's Breakout Gardener library to access the SGP30
The package was tested with the SGP30 Air Quality Sensor Breakout from Pimoroni
Install through Node-RED's pallete manager, or
Run the following command in your Node-RED user directory - most likely at ~/.node-red/
:
npm install node-red-contrib-sgp30
Outputs total volatile organic compounds (TVOC) and equivalent CO2 (eCO2) readings. Also provides an overall score of the air quality based on the eCO2 reading.
Air Quality | Description |
---|---|
1 | Excellent |
2 | Good |
3 | Moderate |
4 | Poor |
5 | Unhealthy |
Example setup using this node to trigger a reading once every second.
For the best results, readings should be taken once every second
The name displayed on the node in the editor
The device address. By default, this value is 0x58
The I2C bus used by the device. By default, this value is 1
Please report any issues here
This project is licensed under the MIT license.