diff options
| author | D Delmar Davis <don@suspectdevices.com> | 2023-08-02 12:41:44 -0700 |
|---|---|---|
| committer | D Delmar Davis <don@suspectdevices.com> | 2023-08-02 12:41:44 -0700 |
| commit | fbc0802ec033fd422a6dd461081fdec07e58a57a (patch) | |
| tree | dd66f6531d5500f91f2d5f233d102a723d497f11 /readtemp.py | |
| parent | 142d7bd8b4b2b7bf3c17cbca165b8a2cabce11fd (diff) | |
hrrm
Diffstat (limited to 'readtemp.py')
| -rwxr-xr-x | readtemp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/readtemp.py b/readtemp.py index 7c5e9ea..4eb6bf4 100755 --- a/readtemp.py +++ b/readtemp.py @@ -22,12 +22,14 @@ for tempsensorid in i2c.scan(): sensor = adafruit_tc74.TC74(i2c) TempRead=sensor.temperature GotTemperature = True - if (tempsensorid==38): + elif (tempsensorid==38): print ("found an AHTx0") sensor = adafruit_ahtx0.AHTx0(i2c) TempRead=sensor.temperature GotTemperature = True HumidityRead = sensor.relative_humidity + else: + print ("found something else " tempsensorid) if (GotTemperature): |
