🌟 Elevate Your Projects with Precision!
The AZDelivery GY-21 HTU21 Humidity and Temperature Sensor Module is a highly accurate, easy-to-use sensor compatible with Arduino and Raspberry Pi. It features an I2C interface, requires no calibration under standard conditions, and comes with an informative E-Book to streamline your project setup.
M**Y
not a bad thing to say.
so I have connected this to a RPi zero w, and from what i can tell from some quick googling - you can read the data raw using address's or you can use the ardunio library (see below). I chose the latter. The sensor connects to i2c, and such i can use the same 2 data pins for multiple sensors and interfaces, like the bme280, an alternative to this.Basically its just as good but i didnt even need to call the 0x40 address using the library. Code is SOOO simple gona post it below. After soldering the header pins and plugging in, it just worked. No hassle.Also AZDelivery emailed me a detailed datasheet and other documents relating to the sensor promptly without me even asking. Nice touch.sudo pip3 install adafruit-circuitpython-htu21dread_htu.py:import timeimport boardimport busiofrom adafruit_htu21d import HTU21D# Create library object using our Bus I2C porti2c = busio.I2C(board.SCL, board.SDA)sensor = HTU21D(i2c)while True: print("\nTemperature: %0.1f C" % sensor.temperature) print("Humidity: %0.1f %%" % sensor.relative_humidity) time.sleep(2)
M**R
Inaccurate readings
The sensor seems to be providing inaccurate temperature and humidity readings. I'm using Adafruit's Python libraries to read the sensor data. After logging readings over the course of a day and comparing against readings from 2 other temperature and humidity monitors the discrepancy is too high (+-5C / +- 16% avg.). I may have a faulty unit so I will order another one and update this review if necessary.
Trustpilot
1 month ago
1 week ago