SCD30 - C02 Sensor
- class pyserialsensors.devices.scd30.SCD30(*args, **kwargs)[source]
SCD30 - CO2 and RH/T Sensor Module
- crc_check(ba)[source]
Assert if received data is valid
- Parameters
ba (bytearray) – Byte array with a crc check sum at every third entry
- Returns
Array of booleans indicating correct crc check sums
- Return type
bytearray
- get_asc_status()[source]
Get automatic self-calibration (acs) status.
- Returns
True if asc active, false otherwise.
- Return type
bool
- get_data()[source]
Read CO2 concentration, temperature and humidty
- Returns
data dictionary (keys: error, values)
- Return type
dict
- get_data_rdy()[source]
Check if measurement data is available
- Returns
True if data is present, false otherwise.
- Return type
bool
- get_measurement_intervall()[source]
Read current measurement interval.
- Returns
Seconds per measurement
- Return type
int
- get_serial_number()[source]
Get device serial number
- Returns
serial number or bool if no number has been read
- Return type
str
- sensor_exists()[source]
Test if sensor is plugged in and works proper
- Returns
True if test was successful otherwise False
- Return type
bool
- set_asc(state)[source]
Setup automatic self calibration
- Parameters
state (bool) – activate or deactivate automatic self-calibration
- start_continuous_measurement(amb_pressure: int = 0)[source]
Initializes a continuous measurement of CO2 temperature and humidity
- Parameters
amb_pressure (int) – ambiet pressure (default==off) ranges from 700-1400mBar
- Returns
Continuous measurement established successfully (true) or failed (false)
- Return type
bool