- There are no more items in your cart
- Shipping
- Total lei0.00
- Electronics
- 3D Printing
- Storage boxes
- CNC
- Stock Clearance
- Fun socks
- Documentation / books
- Gift Cards
SHT21 Digital Humidity And Temperature Sensor Module GY-21
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!
Technical Specifications:
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.
Connection Example:
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.
Package Contents:
1x HTU21 Precision Temperature and Humidity Sensor, GY-21
1x Male Pin Header
Reference: BOQWRO_HX711
Digital scale sensor reader module HX711
Reference: XSHAFJ_DHT22-module
Temperature and humidity sensor DHT22
Reference: GJJFDR_DHT11-module