Skip to main content
Home / Computer Hardware, Monitors & Peripherals / GY-21-HTU21 Sensor Module for Moisture and Humidity with I2C Interface

Attributes

Brand -
Category Electronic Components / Maker DIY / Computer Hardware, Monitors & Peripherals
Origin -
Interface I²C (Inter-Integrated Circuit)
Operating Voltage 3.3V to 5V DC
Humidity Range 0% to 100% RH
Temperature Range -40°C to +125°C
Humidity Accuracy ±2% RH (typical)
Temperature Accuracy ±0.3°C (typical)
Response Time 5 Seconds (tau63%)
Board Dimensions 25mm x 20mm x 5mm
Sensor Chip HTU21D
Current Consumption 150μA during measurement

5 reviews

A

Anonymous

Mar 02, 2026

Rating: 4/5

Good accuracy, slight delay

The sensor is accurate but there is a small delay in reading updates. For most projects, this is negligible. Good value for money.

A

Anonymous

Feb 27, 2026

Rating: 4/5

Solid Performance

Does exactly what it says. Humidity readings stabilize quickly after power on. Would recommend for indoor monitoring.

A

Anonymous

Feb 26, 2026

Rating: 5/5

Reliable Module

Bought five of these for a classroom project. All worked out of the box. Pinout is clearly labeled which helps beginners.

A

Anonymous

Feb 18, 2026

Rating: 5/5

Perfect for Arduino Weather Station

Works flawlessly with my Arduino Uno. The I2C library was easy to find and implement. Readings seem consistent with my home thermometer.

A

Anonymous

Jan 22, 2026

Rating: 5/5

Compact and Easy

Small form factor fits nicely in my enclosure. Voltage regulation on the board allows 5V logic which is convenient.

5 FAQ

Q: Does it come with headers?

A: Yes, the module usually comes with pre-soldered pin headers for easy breadboard use.

Q: Is there a library for ESP32?

A: Yes, there are multiple open-source libraries available for ESP32 that support the HTU21D sensor.

Q: Is this compatible with Raspberry Pi?

A: Yes, it works with Raspberry Pi using the I2C pins. Ensure you enable I2C in the configuration.

Q: Can I use this outdoors?

A: The module itself is not waterproof. You should place it in a weatherproof enclosure if used outside.

Q: What is the I2C address?

A: The default I2C address is typically 0x40. Please refer to the datasheet for configuration options.

Explore your interests

View More
All Categories
Best Seller (30)
New List (30)
Fruit and Vegetable Slicer - Stainless Steel Commercial Electric Multi-Function Shredder for Radish, Potato, Cucumber, Pepper, Automatic

Fruit and Vegetable Slicer - Stainless Steel Commercial Electric Multi-Function Shredder for Radish, Potato, Cucumber, Pepper, Automatic

$2,880.00

CAAS-Developed Granular Insecticide and Fungicide for Vegetable Gardens – Soil Pest Control and Fertilizer for Enhanced Vegetable Growth and Yield

CAAS-Developed Granular Insecticide and Fungicide for Vegetable Gardens – Soil Pest Control and Fertilizer for Enhanced Vegetable Growth and Yield

$13.50

Marie's C6823 Sketch Blending Stumps (3-Pack), Professional Charcoal and Pastel Smudging Tools for Art Students and Beginners, Hard/Small/Highlight Set on Newsprint

Marie's C6823 Sketch Blending Stumps (3-Pack), Professional Charcoal and Pastel Smudging Tools for Art Students and Beginners, Hard/Small/Highlight Set on Newsprint

$7.48

Inverted Water Dispenser Stand with Manual Pump for Large Mineral Water Bottles

Inverted Water Dispenser Stand with Manual Pump for Large Mineral Water Bottles

$67.00

Lanzhai Flagship Store Multifunctional Retro Brush Washer Set, Creative Ceramic Large National Painting Tea Rinse Bowl, Art Display Paperweight, Student Calligraphy Supplies

Lanzhai Flagship Store Multifunctional Retro Brush Washer Set, Creative Ceramic Large National Painting Tea Rinse Bowl, Art Display Paperweight, Student Calligraphy Supplies

$8.42

Multi-Function Vanity Shelf Over Toilet - Floor-Standing Thickened Plastic Storage Cabinet for Squat Toilet Gaps

Multi-Function Vanity Shelf Over Toilet - Floor-Standing Thickened Plastic Storage Cabinet for Squat Toilet Gaps

$52.49

100% Cotton Watercolor Paper Pad 300gsm - Cold/Hot Press, 8K/16K/32K Sizes, Glued on Four Sides for Academy & Portable Sketching

100% Cotton Watercolor Paper Pad 300gsm - Cold/Hot Press, 8K/16K/32K Sizes, Glued on Four Sides for Academy & Portable Sketching

$11.90

Commercial Large Shredding Machine Tornado Potato Slicer Wavy Slice Equipment Carrot Slicer Multi-Function

Commercial Large Shredding Machine Tornado Potato Slicer Wavy Slice Equipment Carrot Slicer Multi-Function

$20,000.00

Electric Heating Pasteurization Tank – Horizontal Spray Type for Fresh Milk and Food Sterilization

Electric Heating Pasteurization Tank – Horizontal Spray Type for Fresh Milk and Food Sterilization

$11,211.00

[First Batch Deposit] Spring Cherry & Pear Snow - Original Lolita Ballet-Style Cake Dress Chinese JSK

[First Batch Deposit] Spring Cherry & Pear Snow - Original Lolita Ballet-Style Cake Dress Chinese JSK

$5.00

Bottled Water Electric Pump Bracket, Mineral and Pure Water Dispenser, Automatic Water Outlet Device

Bottled Water Electric Pump Bracket, Mineral and Pure Water Dispenser, Automatic Water Outlet Device

$383.98

Micro-Hyperbaric Oxygen Chamber - Rigid Sit/Lie Model for Home and Commercial Use, High-Altitude Oxygen Therapy Room

Micro-Hyperbaric Oxygen Chamber - Rigid Sit/Lie Model for Home and Commercial Use, High-Altitude Oxygen Therapy Room

$150.00

Stainless Steel Illuminated Hotel Room Number Plate, Smart Electronic Door Sign with Do Not Disturb and Make Up Room Bell

Stainless Steel Illuminated Hotel Room Number Plate, Smart Electronic Door Sign with Do Not Disturb and Make Up Room Bell

$10.00

Paper Blending Stump A1zdq001 - Large Art Sketch Highlighting Tool for Students

Paper Blending Stump A1zdq001 - Large Art Sketch Highlighting Tool for Students

$4.15

Continental Run-Flat Tires 225 235 245 255 265/45 50 55R17R18R19R20R21R22

Continental Run-Flat Tires 225 235 245 255 265/45 50 55R17R18R19R20R21R22

$350.00

3D Printing Pen for Children - 3D Stereoscopic Drawing Toy for Boys and Girls (Ages 6+)

3D Printing Pen for Children - 3D Stereoscopic Drawing Toy for Boys and Girls (Ages 6+)

$35.70

MOOCAT Loose-Leaf Refill – 300G Wood Pulp Fine-Texture Blank Paper for OC Binders A9/B5/M5/M6 Hand Drawing

MOOCAT Loose-Leaf Refill – 300G Wood Pulp Fine-Texture Blank Paper for OC Binders A9/B5/M5/M6 Hand Drawing

$12.90

Lanzhai Calligraphy Wool Felt Mat – Mini Arm Rest and Inkstone Pad with Creative Chinese Style Design for Painting and Writing

Lanzhai Calligraphy Wool Felt Mat – Mini Arm Rest and Inkstone Pad with Creative Chinese Style Design for Painting and Writing

$7.48

Qing Dynasty Calligrapher Lin Zexu Guangeti Small Regular Script: Buddha Speaks of the Infinite Life Sutra, Brush Tracing Practice Long Scroll Copybook

Qing Dynasty Calligrapher Lin Zexu Guangeti Small Regular Script: Buddha Speaks of the Infinite Life Sutra, Brush Tracing Practice Long Scroll Copybook

$8.80

Lightweight Ceramsite Bottom Padding, Professional Backfill for Sunken Bathroom Engineering and Construction, Large Granules

Lightweight Ceramsite Bottom Padding, Professional Backfill for Sunken Bathroom Engineering and Construction, Large Granules

$30.10

[In Stock] MINISO YOYO Wind-Chasing Diary Series Aromatherapy Figure Blind Box – Youyou-chan Ornament

[In Stock] MINISO YOYO Wind-Chasing Diary Series Aromatherapy Figure Blind Box – Youyou-chan Ornament

$49.00

Sanitary Juice Beverage Dairy Mixing Tank Food Pharmaceutical Electric Heating Emulsification Reaction Dissolution Tank

Sanitary Juice Beverage Dairy Mixing Tank Food Pharmaceutical Electric Heating Emulsification Reaction Dissolution Tank

$4,122.00

Zhi Paper Calligraphy Copybook: Shen Du's Red Cliff Ode, Jingzhai Zhen, and Bu Zi Qi Shuo - Small Regular Script Cards for Tracing Practice

Zhi Paper Calligraphy Copybook: Shen Du's Red Cliff Ode, Jingzhai Zhen, and Bu Zi Qi Shuo - Small Regular Script Cards for Tracing Practice

$17.00

Maike Outdoor Waterproof Dry Bag - Crossbody Travel Backpack for Rafting Diving and Beach Activities

Maike Outdoor Waterproof Dry Bag - Crossbody Travel Backpack for Rafting Diving and Beach Activities

$19.90

Oriental Pearl Dual Porcelain Jar Gift Set: Green Tea, Black Tea, Jin Jun Mei, and Pu'erh Loose Leaf Tea in Porcelain Jars

Oriental Pearl Dual Porcelain Jar Gift Set: Green Tea, Black Tea, Jin Jun Mei, and Pu'erh Loose Leaf Tea in Porcelain Jars

$140.41

Transparent Retainer Storage Case – Portable Soaking and Cleaning Box for Orthodontic Appliances and Dentures

Transparent Retainer Storage Case – Portable Soaking and Cleaning Box for Orthodontic Appliances and Dentures

$8.42

Original Wang Xizhi Huangting Small Regular Script Calligraphy Copybook for Soft/Hard Tip Pens Tear-Off Card Precise Tracing Kaishu Huan'e Tie

Original Wang Xizhi Huangting Small Regular Script Calligraphy Copybook for Soft/Hard Tip Pens Tear-Off Card Precise Tracing Kaishu Huan'e Tie

$35.70

Foldable Kitchen Sink Dish Drying Rack - Silicone Roll-Up Mat and Countertop Organizer

Foldable Kitchen Sink Dish Drying Rack - Silicone Roll-Up Mat and Countertop Organizer

$25.40

Rapid Folding Shopping Cart, Small Trolley for Stairs, Lightweight Portable Home Handcart, Supermarket Pushcart and Vegetable Basket

Rapid Folding Shopping Cart, Small Trolley for Stairs, Lightweight Portable Home Handcart, Supermarket Pushcart and Vegetable Basket

$178.39

Over-Toilet Storage Rack - No-Drill Toilet Paper Holder with Multi-Compartment Shelves for Wet Wipes and Aromatherapy

Over-Toilet Storage Rack - No-Drill Toilet Paper Holder with Multi-Compartment Shelves for Wet Wipes and Aromatherapy

$19.71