Documentation ¶
Overview ¶
SGP30 VOC sensor.
This sensor is marked obsolete by Sensirion, but is still commonly available.
Datasheet: https://sensirion.com/media/documents/984E0DD5/61644B8B/Sensirion_Gas_Sensors_Datasheet_SGP30.pdf
Index ¶
Constants ¶
View Source
const Address = 0x58
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func New ¶
New returns a new SGP30 driver instance. It does not touch the device yet, call Configure to configure this sensor.
func (*Device) CO2 ¶
Returns the CO₂ equivalent value read in the previous measurement.
Warning: this is _not_ an actual CO₂ value. The SGP30 can't actually read CO₂. Instead, it's an approximation based on various other gases in the environment.
func (*Device) Connected ¶
Connected returns whether something (probably a SGP30) is present on the bus.
Click to show internal directories.
Click to hide internal directories.