Skip to content

Commit

Permalink
Merge pull request #2 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 4634acb + f2a5a70 commit 0469278
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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.0] - 2024-3-4

### Added
Expand Down
2 changes: 2 additions & 0 deletions examples/measurement_with_compensation_linux_stc3x.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@
# Print CO2 concentration in Vol% and temperature in degree celsius.
print(f"CO2 concentration = {co2_concentration}")
print(f"STC3x Temperature = {stc3x_temperature}")
print(f"SHT4x Temperature = {sht4x_temperature}")
print(f"Temperature Delta = {stc3x_temperature.value - sht4x_temperature.value:.2f}")
2 changes: 2 additions & 0 deletions examples/measurement_with_compensation_sensorbridge_stc3x.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@
# Print CO2 concentration in Vol% and temperature in degree celsius.
print(f"CO2 concentration = {co2_concentration}")
print(f"STC3x Temperature = {stc3x_temperature}")
print(f"SHT4x Temperature = {sht4x_temperature}")
print(f"Temperature Delta = {stc3x_temperature.value - sht4x_temperature.value:.2f}")

0 comments on commit 0469278

Please sign in to comment.