hs3003 — HS3003 humidity/temperature sensor
Driver for the Renesas HS3003 high-accuracy relative humidity and temperature sensor over I2C. A single I2C transaction triggers a new measurement and reads back four bytes containing both the humidity and temperature samples; the driver scales the raw counts into engineering units.
Example:
import time
from machine import Pin, I2C
from hs3003 import HS3003
bus = I2C(1, scl=Pin(15), sda=Pin(14))
hts = HS3003(bus)
while True:
print("rH: %.2f%% T: %.2fC" % (hts.humidity(), hts.temperature()))
time.sleep_ms(100)
Classes
- class hs3003.HS3003(bus: machine.I2C, address: int = 0x44)
Construct an
HS3003instance.busA configured
machine.I2Cbus the sensor is attached to.address7-bit I2C address of the device. Defaults to
0x44, the factory address used by all HS3003 parts.