Skip to content

Commit b87b2be

Browse files
committed
add TVOC option
1 parent 69d2d4f commit b87b2be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Adafruit_Sensor.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ typedef enum {
6666
SENSOR_TYPE_OBJECT_TEMPERATURE = (14),
6767
SENSOR_TYPE_VOLTAGE = (15),
6868
SENSOR_TYPE_CURRENT = (16),
69-
SENSOR_TYPE_COLOR = (17)
69+
SENSOR_TYPE_COLOR = (17),
70+
SENSOR_TYPE_TVOC = (18)
7071
} sensors_type_t;
7172

7273
/** struct sensors_vec_s is used to return a vector in a common format. */
@@ -134,6 +135,7 @@ typedef struct {
134135
float relative_humidity; /**< relative humidity in percent */
135136
float current; /**< current in milliamps (mA) */
136137
float voltage; /**< voltage in volts (V) */
138+
float tvoc; /**< Total Volatile Organic Compounds, in ppb */
137139
sensors_color_t color; /**< color in RGB component values */
138140
}; ///< Union for the wide ranges of data we can carry
139141
} sensors_event_t;

0 commit comments

Comments
 (0)