diff --git a/adafruit_htu21d.py b/adafruit_htu21d.py index fb2a1d2..acc4280 100644 --- a/adafruit_htu21d.py +++ b/adafruit_htu21d.py @@ -49,6 +49,7 @@ except ImportError: import ustruct as struct +import time from adafruit_bus_device.i2c_device import I2CDevice from micropython import const @@ -87,6 +88,7 @@ def __init__(self, i2c_bus, address=0x40): self.i2c_device = I2CDevice(i2c_bus, address) self._command(_RESET) self._measurement = 0 + time.sleep(0.01) def _command(self, command): with self.i2c_device as i2c: