This module implements the rdk sensor API in a coderscafe:sensor:ens160 model. With this model, you can read VOCs (volatile organic compounds), eCO2 (equivalent carbon dioxide), and an Air Quality Index (AQI) from DFRobot Fermion: ENS160 Air Quality Sensor
Please make sure that I2C communication is enabled on the device to which the sensor is connected.
To use this module, follow these instructions to add a module from the Viam Registry and select the coderscafe:sensor:ens160
module.
Note
Before configuring your sensor, you must create a machine.
- Navigate to the Config tab of your robot’s page in the Viam app.
- Click on the Components subtab and click on the
sensor
subtab. - Select the
coderscafe:sensor:ens160
model. - Enter a name for your sensor and click Create.
- Save and wait for the component to finish setup.
Note
For more information, see Configure a Robot.
The following attributes are available for coderscafe:sensor:ens160
sensor:
Name | Type | Inclusion | Description |
---|---|---|---|
temperature_compensation |
integer | Optional | Set Temperature Compensation |
humidity_compensation |
integer | Optional | Set Humidity Compensation |
{
"temperature_compensation":30,
"humidity_compensation": 60
}