SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor

SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor image

View on Amazon

Overview

The SHT31 series sensors utilize Sensirion's CMOSens® technology to deliver accurate, stable, and linear temperature and humidity data. Their robust calibration and long-term reliability make them ideal for applications that require consistent performance under varying conditions.

About SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor

The SHT31, SHT31-D, GY-SHT31, and SI7021 sensors share a similar architecture, delivering high-accuracy temperature and humidity measurements. An improvement over the SHT30, the SHT31 series offers enhanced reliability and performance, making it ideal for HVAC systems, environmental monitoring, data logging, and IoT applications.

Key Features

  • Improved Accuracy & Stability – More precise than previous models.
  • I²C Communication – Seamless integration with ESP32, Arduino, and microcontrollers.
  • Enhanced Performance – Faster response time and better long-term reliability.
  • Versatile Applications – Used in industrial, smart home, and scientific monitoring systems.

With its higher precision and durability, the SHT31 series is a great choice for demanding climate monitoring applications. 🚀

For applications demanding even higher precision, faster response times, or specialized features, consider the SHT35 sensor, which provides superior performance for demanding environments.

Where to Buy

Get Your SHT31 / SHT31-D / GY-SHT31 / SI7021

SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor

Starting from

$6 per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

SHT31 / SHT31-D / GY-SHT31 / SI7021 Specifications

Complete technical specification details for SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor

📊 Technical Parameters

Operating Voltage 2.15V to 5.5V
Temperature Range -40°C to 125°C
Humidity Range 0% to 100% RH
Temperature Accuracy ±0.2°C
Humidity Accuracy ±2% RH
Interface I2C
Dimensions 2.5mm x 2.5mm x 0.9mm
Pin Configuration

SHT31 / SHT31-D / GY-SHT31 / SI7021 Pinout

The SHT31 uses standard I²C communication with 4 pins, offering high accuracy with wide voltage range.

Visual Pinout Diagram

Pinout Diagram Primary
SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor pinout
4
Total Pins

Pin Types

Power
2
Communication
2

Quick Tips

🔌

Standard I²C interface for easy integration,📡 Default I²C address is 0x44 or 0x45 (configurable)

💡

Exceptional accuracy: ±0.2°C temp, ±2% humidity,⚡ Wide voltage range (2.15V-5.5V) for flexibility

🏆

Enhanced version of SHT30 with better performance

Pin Descriptions

Pin NameTypeDescriptionNotes
1 VDD
Power

Power supply input (2.15V to 5.5V)

Wide voltage range for various applications

2 GND
Power

Ground connection

Connect to ESP32 ground

3 SDA
Communication

I²C data line

Bidirectional data communication

4 SCL
Communication

I²C clock line

Clock signal from master device

Connection Guide

Wiring SHT31 / SHT31-D / GY-SHT31 / SI7021 to ESP32

Connect the SHT31 using standard I²C interface for professional-grade measurements.

Visual Wiring Diagram

Wiring Diagram Recommended
SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor wiring with ESP32
4
Connections

Connection Status

Required
4

Protocol

I2C

Pin Connections

SHT31 / SHT31-D / GY-SHT31 / SI7021 PinConnectionESP32 PinDescription
1 VDD Required
3.3V

Power supply (2.15V to 5.5V supported)

2 GND Required
GND

Ground connection

3 SDA Required
GPIO21

I²C data line (default SDA)

4 SCL Required
GPIO22

I²C clock line (default SCL)

💡

GPIO21/22 are default I²C pins on ESP32

🔧

I²C address is 0x44 or 0x45 (check your module)

Add 10kΩ pull-up resistors on SDA/SCL if needed

📡

Can share I²C bus with other devices

Help & Support

SHT31 / SHT31-D / GY-SHT31 / SI7021 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

SHT31 / SHT31-D / GY-SHT31 / SI7021 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up SHT31 / SHT31-D / GY-SHT31 / SI7021

The ESP32 SHT31 / SHT31-D / GY-SHT31 / SI7021 Temperature and Humidity Sensor is a powerful environment sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the SHT31 / SHT31-D / GY-SHT31 / SI7021 into your ESP32 project and bring your ideas to life!

Similar Options

Explore Alternative Sensors

Looking for alternatives to the SHT31 / SHT31-D / GY-SHT31 / SI7021? Check out these similar sensors that might fit your project needs.

SHT30 Temperature and Humidity Sensor

SHT30 Temperature and Humidity Sensor

ENVIRONMENT I2C

The SHT30 sensor is a high-precision digital temperature and humidity sensor that utilizes Sensirion's CMOSens® technology. It provides...

View Details
AHT10 Temperature and Humidity Sensor

AHT10 Temperature and Humidity Sensor

ENVIRONMENT I2C

The AHT10 is an advanced, fully calibrated, and highly integrated temperature and humidity sensor that provides reliable, precise...

View Details
SHT41 / SHT41-D / GY-SHT41-D Temperature and Humidity Sensor

SHT41 / SHT41-D / GY-SHT41-D Temperature and Humidity Sensor

ENVIRONMENT I2C

The SHT41 sensor is part of Sensirion's SHT4x series and offers high-accuracy temperature and humidity measurements. It is factory...

View Details