Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/SensorWrappers/Stc3x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@ uint16_t Stc3x::initializationStep() {
return error;
}

// Set relative humidity
/**
* See
* https://sensirion.com/media/documents/7B1D0EA7/61652CD0/Sensirion_Thermal_Conductivity_Datasheet_STC31_D1_1.pdf
* Section 3.3.3
*
* Sensor would assume a relative humidity of 0% if we would not set this explicitly, which could
* lead to negative gas concentration values.
*/
error = _driver.setRelativeHumidity(50);
if (error) {
return error;
}

return HighLevelError::NoError;
}

Expand Down