You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
temperature, humidity = sensor.measure()
Traceback (most recent call last):
File "", line 1, in
File "sht30.py", line 136, in measure
File "sht30.py", line 100, in send_cmd
TypeError: 'int' object isn't iterable
The text was updated successfully, but these errors were encountered:
Grave digger here(seeing how long ago the last comment is)! Just began messing around with those SHT30 sensors, trying to expand my indoor sensor suite. I'm currently running Micropython 1.17 on an ESP32 dev board (the project is a bit older). Currently I'm using a BME280, an DS18B20 and a Pt100 (via ADS1115). I use a SPI TFT Display to visualize data, and send all data to a local influxdb via MQTT and NodeRED.
I've now added the SHT30 sensor on my I2C bus. When I try it out "stand-alone" in it's own little module, it works fine. However when I integrate it into my code, I get the "'int' object isn't iterable" error.
I can read the sensor once and get data back, but as soon as my loop comes back to it after about 30 secons sleep time, I get that error.
So I'm pretty sure it's connected properly, because in a separate .py it works.
What could cause that behaviour?
The text was updated successfully, but these errors were encountered: