diff --git a/adafruit_ens160.py b/adafruit_ens160.py index 98204b3..d3fddbc 100644 --- a/adafruit_ens160.py +++ b/adafruit_ens160.py @@ -108,8 +108,8 @@ class ENS160: def __init__(self, i2c_bus: I2C, address: int = ENS160_I2CADDR_DEFAULT) -> None: self.i2c_device = i2c_device.I2CDevice(i2c_bus, address) - if self.part_id != 0x160: - raise RuntimeError("Unable to find ENS160, check your wiring") + if self.part_id not in {0x160, 0x161}: + raise RuntimeError("Unable to find ENS160 or ENS161, check your wiring") self.clear_command() self.mode = MODE_STANDARD self._buf = bytearray(8)