Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init RH value to 50% for STC3x #12

Merged
merged 1 commit into from
Aug 16, 2024
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
Loading