- Reduced price

Pick up your orders anytime, hassle-free!
Orders placed by 2:00 PM are shipped the same day. Delivered within 24h!
Reliable products, worry-free!
Unused items? No questions asked!
Supply Voltage: 2.1V - 3.6V
Low Power Consumption - 0.15uA
I2C Interface
Resolution: 0.04%RH, 0.02°C
Accuracy: ±2%RH, ±3°C
Weight: 1.02g
Dimensions: 21mm x 16mm
Note: The HTU21 chip datasheet is available in PDF format in the DOWNLOADS section.
To complete this example, you will need the following components:
UNO R3 Development Board compatible with Arduino
HTU21 Precision Temperature and Humidity Sensor, GY-21
Various wires and connectors for establishing connections
Connection Example:
Code Example:
#include <SHT21.h> // include SHT21 library
SHT21 sht;
float temp; // variable to store temperature
float humidity; // variable to store humidity
void setup() {
Wire.begin(); // begin Wire(I2C)
Serial.begin(9600); // begin Serial
}
void loop() {
temp = sht.getTemperature(); // get temp from SHT
humidity = sht.getHumidity(); // get humidity from SHT
Serial.print("Temp: "); // print readings
Serial.print(temp);
Serial.print("t Humidity: ");
Serial.println(humidity);
delay(85); // min delay for 14bit temp reading is 85ms
}
To use the code above, you will need the SHT21 library, available in the DOWNLOADS section.
1x HTU21 Precision Temperature and Humidity Sensor, GY-21
1x Male Pin Header
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent
Write your review
Review sent
Your review cannot be sent
Reference: OGVWKS_ADS1015
Reference: GJJFDR_DHT11-module
Reference: HCYMTH_NTC-3950-100k
check_circle
check_circle