This sensirion module implements a sensirion sht3xd sensor for temperature and humidity using the rdk:component:sensor
API.
Note
Before configuring your sensor, you must create a machine.
Navigate to the CONFIGURE tab of your machine in the Viam app. Add sensor / viam:sensirion:sht3xd to your machine.
Copy and paste the following attributes into your JSON configuration:
{
"i2c_bus": "0",
}
The following attributes are available for viam:sensirion:sht3xd
sensors:
Attribute | Type | Required? | Description |
---|---|---|---|
i2c_bus |
string | Required | The index of the I2C bus on the board that the sensor is wired to. |
i2c_address |
string | Optional | The I2C device address of the sensor. Default: 0x44 |
{
"i2c_bus": "<your-i2c-bus-index-on-board>",
"i2c_address": "<your-i2c-address>"
}
- To test your sensor, expand the TEST section of its configuration pane or go to the CONTROL tab.
- To write code against your sensor, use one of the available SDKs.
- To view examples using a sensor component, explore these tutorials.