GY-21 HTU21 Temperature and Humidity Sensor is a high-accuracy, low-power digital atmospheric sensing module powered by the TE Connectivity / Measurement Specialties HTU21D CMOSens sensor IC. Housed on a compact breakout board with an onboard 3.3V low-dropout voltage regulator and I2C pull-up resistors, it communicates over a standard 2-wire I2C interface, delivering relative humidity measurements with ±2% RH accuracy and temperature readings with ±0.3°C accuracy. Built with a calibrated capacitive moisture element and an integrated bandgap temperature transducer, it features selectable ADC resolutions, integrated checksum error checking, and ultra-fast 14-bit conversion times, serving as an ideal environmental telemetry sensor for Arduino, ESP32, STM32, and Raspberry Pi climate stations.
Key Features:
- Authentic HTU21D Digital Sensor IC: High-precision CMOSens silicon technology ensures long-term calibration stability and fast response times.
- High Precision Digital Measurement: Delivers ±2% RH humidity accuracy across 5% to 95% RH and ±0.3°C temperature accuracy across -40°C to +125°C.
- Fast I2C Bus Communication: Operates across standard I2C serial bus (address 0x40) with fast-mode support up to 400 kHz and CRC checksum verification.
- Onboard 3.3V LDO Voltage Regulator: Compatible with both 3.3V and 5.0V power rails, allowing direct hookup with Arduino Uno without voltage adapters.
- Configurable ADC Measurement Resolution: Software-programmable resolution options from 8-bit to 14-bit allow balancing measurement precision against conversion time.
Technical Specifications:
- Operating Supply Voltage: 3.0 V DC to 5.0 V DC (Onboard 3.3V LDO regulator)
- Active Measuring Current: ≤ 450 μA (Peak during 14-bit conversion)
- Standby Sleep Current: ≤ 0.14 μA (Typical sleep mode)
- Humidity Measurement Range: 0% to 100% RH
- Humidity Accuracy: ±2.0% RH (Typical @ 25°C, 20% to 80% RH)
- Humidity Resolution: 0.04% RH (12-Bit default)
- Temperature Measurement Range: -40°C to +125°C
- Temperature Accuracy: ±0.3°C (Typical @ 25°C)
- Temperature Resolution: 0.01°C (14-Bit default)
- Conversion Time: Approx. 50 ms (14-Bit Temperature) / 16 ms (12-Bit Humidity)
- I2C Address: 0x40 (Fixed 7-bit hardware address)
Mechanical Specifications:
- Circuit Board Construction: Double-sided high-density FR-4 glass-epoxy PCB with blue solder mask and gold-plated pads
- Sensor Packaging: Flat DFN package with protective hydrophobic acoustic PTFE vent membrane
- Header Footprint: 4-pin single-row 2.54 mm (0.1 inch) pitch gold-plated straight male headers
- Mounting Hole: 1 × 3.0 mm mounting screw hole for secure chassis placement
- Net Weight: Approx. 1.5 g
Dimensions:
- Module Length: 15.5 mm
- Module Width: 15.5 mm
- Total Height: 2.5 mm (excluding header pins)
- Pin Pitch: Standard 2.54 mm
Pinout and Wiring:
- VIN / VCC: Connect to positive DC power supply (+3.3V to +5V DC).
- GND: Connect to common ground (0V / GND).
- SCL: I2C serial clock input line; connect to microcontroller I2C SCL pin.
- SDA: I2C serial data bi-directional line; connect to microcontroller I2C SDA pin.
Datasheet Reference:
- Measurement Specialties HTU21D Digital Relative Humidity Sensor Datasheet and SparkFun HTU21D Arduino Library Guide.
Commonly Used in:
- Smart home IoT wireless weather stations and desktop environmental room comfort loggers.
- Agricultural greenhouses, soil canopy humidity monitoring, and hydroponic nutrient chambers.
- HVAC building environmental air conditioning systems, dehumidifiers, and smart thermostats.
- Museum document storage archives, medical cleanrooms, and pharmaceutical storage cabinets.
Applications:
- Replacing slow, single-wire DHT11/DHT22 sensors with fast, accurate, CRC-verified I2C readings.
- Deploying ultra-low-power battery-operated environmental sensing nodes using ESP-NOW or LoRaWAN.
- Automating bathroom and attic exhaust fan triggers based on relative humidity rise.
- Precision incubator and egg brooder climate stabilization.
Equivalent Models:
- GY-213V-HTU21D Temperature and Humidity Sensor Module
- Si7021 I2C Interface Humidity and Temperature Sensor Module
- SHT30 / SHT31 Digital Temperature and Humidity Sensor
- AHT21 High Precision I2C Digital Temperature and Humidity Sensor Module
Package Includes:
- 1 × GY-21 HTU21 Temperature and Humidity Sensor
- 1 × 4-Pin Straight 2.54mm Male Header Strip



Reviews
No reviews yet. Be the first to share your experience!