Skip to content

Commit

Permalink
Merge pull request #12 from Sensirion/stc3x_init_rht
Browse files Browse the repository at this point in the history
init RH value to 50% for STC3x
  • Loading branch information
sdmueller authored Aug 16, 2024
2 parents 000d34d + 79ff9c6 commit c9ff045
Showing 1 changed file with 14 additions and 0 deletions.
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

0 comments on commit c9ff045

Please sign in to comment.