We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f709a6f + 64d2709 commit 570da14Copy full SHA for 570da14
examples/bme680_simpletest.py
@@ -10,8 +10,13 @@
10
# change this to match the location's pressure (hPa) at sea level
11
bme680.sea_level_pressure = 1013.25
12
13
+# You will usually have to add an offset to account for the temperature of
14
+# the sensor. This is usually around 5 degrees but varies by use. Use a
15
+# separate temperature sensor to calibrate this one.
16
+temperature_offset = -5
17
+
18
while True:
- print("\nTemperature: %0.1f C" % bme680.temperature)
19
+ print("\nTemperature: %0.1f C" % bme680.temperature + temperature_offset)
20
print("Gas: %d ohm" % bme680.gas)
21
print("Humidity: %0.1f %%" % bme680.humidity)
22
print("Pressure: %0.3f hPa" % bme680.pressure)
0 commit comments