Skip to content

Commit 608105d

Browse files
authored
Merge pull request #88 from adafruit/update-env-sensor-example
update environmental_monitor.py sketch
2 parents 8404f9a + 70e010c commit 608105d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Adafruit_IO/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.1.1"
1+
__version__ = "2.1.2"

examples/basics/environmental_monitor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import board
3434
import busio
3535

36-
# import sensor libraries
36+
# import CircuitPython sensor libraries
3737
import adafruit_sgp30
3838
import adafruit_veml6070
3939
import adafruit_bme280
@@ -91,12 +91,11 @@ def sample_VEML():
9191
uv_raw = uv.read
9292
return uv_raw
9393

94-
9594
while True:
9695
print('Reading sensors...')
9796
# Read SGP30.
98-
eCO2_data = sgp30.co2eq
99-
tvoc_data = sgp30.tvoc
97+
eCO2_data = sgp30.eCO2
98+
tvoc_data = sgp30.TVOC
10099

101100
# Read VEML6070.
102101
uv_data = sample_VEML()

0 commit comments

Comments
 (0)