Skip to content

Commit

Permalink
Merge pull request #3 from Sensirion/add-temp-diff-to-example-with-co…
Browse files Browse the repository at this point in the history
…mpensation

Print SHT4x temperature and delta
  • Loading branch information
psachs committed Jun 21, 2024
2 parents 2120f84 + df2cae0 commit 44ebebe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- Serial print of SHT4x temperature and temperature
difference between STC3x and SHT4x to compensation
example.

## [1.0.1]

### Fixed
Expand All @@ -27,4 +32,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[Unreleased]: https://github.com/Sensirion/arduino-i2c-stc3x/compare/1.0.1...HEAD
[1.0.1]: https://github.com/Sensirion/arduino-i2c-stc3x/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/Sensirion/arduino-i2c-stc3x/compare/0.1.0...1.0.0
[0.1.0]: https://github.com/Sensirion/arduino-i2c-stc3x/releases/tag/0.1.0
[0.1.0]: https://github.com/Sensirion/arduino-i2c-stc3x/releases/tag/0.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,13 @@ void loop() {
Serial.print("CO2_concentration:");
Serial.print(stc3xCo2Concentration);
Serial.print(",");
Serial.print("Temperature:");
Serial.print("Temperature_STC3x:");
Serial.print(stc3xTemperature);
Serial.print(",");
Serial.print("Temperature_SHT4x:");
Serial.print(sht4xTemperature);
Serial.print(",");
Serial.print("Temperature_Delta:");
Serial.print(stc3xTemperature - sht4xTemperature);
Serial.println();
}

0 comments on commit 44ebebe

Please sign in to comment.