SHT20 Digital Temperature And Humidity Sensor
$4.201 pcs
SHT20 digital temperature and humidity measurement module, I2C communication, small size, high precision, wide voltage
| Dimensions | 12 × 12 mm |
|---|---|
| Brand |
easyelecmodule |
957 in stock
Product Introduction
The SHT20 digital temperature and humidity sensor launched by Sensirion from Switzerland is based on the world-leading CMOSens® digital sensing technology, featuring extremely high reliability and excellent long-term stability. It is calibrated over the entire range and has a two-wire digital interface, which can be directly connected to a microcontroller, greatly shortening R&D time, simplifying peripheral circuits and reducing costs. In addition, it has the advantages of tiny size, fast response, low power consumption, immersibility, strong anti-interference ability, integrated temperature and humidity measurement, and dew point measurement. With high cost-effectiveness, this product is suitable for applications in various scenarios.
Product parameters
| PARAMETER | VALUE |
|---|---|
| Humidity Measurement Range | 0~100%RH |
| Humidity Measurement Accuracy | ±3%RH |
| Temperature Measurement Range | -40~125°C |
| Temperature Measurement Accuracy | ±0.3°C |
| Operating Voltage | 2.1~3.6VDC (Please note: Do not use 5V power supply!!!) |
| Interface Output | I2C |
| PCB Size | 12*12MM |
SHT20 Datasheet
If you want to learn more SHT20 digital temperature and humidity sensor details, you can refer to this datasheet.
Pin Definition
- VCC – Positive Pole
- GND – Negative Pole
- SDA – Data
- SCL – Clock
Standard I2C Communication (Note: VCC should be connected to the operating voltage of 2.1~3.6VDC)
How to Use the SHT20?
1. Hardware Wiring (Arduino Example)
The SHT20’s I2C interface simplifies wiring—no complex circuits are needed. The core connections are as follows:
- VDD → Arduino 3.3V (Note: Do NOT connect to 5V, as this may damage the sensor)
- GND→ Arduino GND
- SDA → Arduino A4
- SCL → Arduino A5
2. Programming Implementation (Arduino Practical Example)
Programming the SHT20 is straightforward: Send commands via I2C to trigger measurements, read the returned data, and convert it to actual temperature and humidity values. Below is a complete Arduino example code, including data reading, conversion, and serial output:
#include
#define SHT20_ADDR 0x40
#define TRIG_TEMP_MEAS 0xF3
#define TRIG_HUMI_MEAS 0xF5
void setup() {
Wire.begin();
Serial.begin(9600);
while (!Serial); // Wait for serial port to connect
Serial.println("SHT20 Temperature and Humidity Sensor Test");
delay(100);
}
void loop() {
float temp = readTemperature();
float humi = readHumidity();
Serial.print("Temperature: ");
Serial.print(temp);
Serial.print(" °C, Humidity: ");
Serial.print(humi);
Serial.println(" %RH");
delay(1000);
}
float readTemperature() {
Wire.beginTransmission(SHT20_ADDR);
Wire.write(TRIG_TEMP_MEAS);
Wire.endTransmission();
delay(50); // Wait for measurement (≈66ms for 14-bit resolution)
Wire.requestFrom(SHT20_ADDR, 3);
while (Wire.available() < 3);
uint16_t tempData = (Wire.read() << 8) | Wire.read();
Wire.read(); // Read checksum (optional for basic use)
return -46.85 + 175.72 * (tempData & 0xFFFC) / 65536.0;
}
float readHumidity() {
Wire.beginTransmission(SHT20_ADDR);
Wire.write(TRIG_HUMI_MEAS);
Wire.endTransmission();
delay(30); // Wait for measurement (≈22ms for 12-bit resolution)
Wire.requestFrom(SHT20_ADDR, 3);
while (Wire.available() < 3);
uint16_t humiData = (Wire.read() << 8) | Wire.read();
Wire.read(); // Read checksum (optional for basic use)
float humidity = -6.0 + 125.0 * (humiData & 0xFFFC) / 65536.0;
return constrain(humidity, 0.0, 100.0);
}
Application Scope
- Asset and Item Tracking
- Automotive Climate Control and Defogging
- Baby Monitors
- Continuous Positive Airway Pressure (CPAP) Machines
- Flood and Water Detectors
- Gas, Fire, and Smoke Detectors
- Mobile Phones/Smartphones
- Industrial HVAC/R
- Laptops/Tablets
- Laser Printers
- Microenvironments/Data Centers
- PLC and IO Modules
- Remote Telemetry Devices
- Tablets
- Testing and Measurement
- Thermostats
- Ventilation and Air Conditioning Systems
- Weather Stations
- Wind Power Inverters
- Windshield and Rearview Mirror Systems
- Wireless Base Stations
- Wireless Sensor Networks
Shipping Cost
We only ship to the United States. Shipping costs are calculated based on the total order amount.
Shipping Method And Delivery Time
All orders will be processed and shipped within 72 hours of placing the order (excluding weekends and holidays). They will ship from Shenzhen, China, primarily via 4PX logistics. Depending on the destination and logistics conditions, other carriers such as DHL, FedEx, UPS, USPS, etc., may also handle the delivery. Estimated shipping time is 7-12 business days, with actual delivery occurring in 10-17 business days, depending on logistics conditions.
Payment:
We accept Visa, Master card, Maestro, American Express, JCB, Dinner's Club, Discover, Paypal, Apple Pay, Google Pay .

Reviews
There are no reviews yet.