Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›SHT3x, SHT4x and Digital Humidity Sensors

Comparison · Intermediate · 3 min read

SHT3x, SHT4x and Digital Humidity Sensors

Choosing and Using Them

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhy choose an SHT sensorSHT3x vs SHT4xReading an SHT31 on ArduinoPlacement and careTry itCommon mistakesFAQsParts and next steps
Short answer

Sensirion SHT3x and SHT4x chips give accurate temperature and relative humidity over I2C and are a big step up from the DHT11. SHT31 and SHT4x boards are the usual choice for weather stations, greenhouses and data loggers. Keep the sensor in moving air away from heat, and avoid condensation for long periods.

Key specs at a glance

SHT30 / SHT31 / SHT35
I2C 0x44 or 0x45, ±3 %, ±2 %, ±1.5 %RH typical, built-in heater
SHT40 / SHT41 / SHT45
Newer low-power family, better accuracy, smaller
HDC1080 / HTU21D
Alternative I2C humidity chips with similar use
DHT22
Single-wire, slower and less accurate
Supply
2.15 to 5.5 V on SHT3x; breakout boards often add regulators
Response time
Several seconds, slower in still air
01

Why choose an SHT sensor

Humidity sensors drift and are easily contaminated by dust, solvents and long exposure to condensation. Sensirion's SHT family is factory calibrated, stable and well documented, and is widely used in weather stations, HVAC and greenhouse control. Compared with the DHT11 and DHT22, the I2C interface is faster, more accurate and easier to share with other sensors.

02

SHT3x vs SHT4x

The two families work the same way. Choose by size and accuracy.

FamilyTypical accuracyNotes
SHT30±3 %RH, ±0.2 °CEntry level, common on cheap breakouts
SHT31±2 %RH, ±0.2 °CMost popular; heater option
SHT35±1.5 %RHPrecision version
SHT40 / SHT41 / SHT45Better accuracy as the number risesSmaller, lower power, newer design
SHT30
Typical accuracy:
±3 %RH, ±0.2 °C
Notes:
Entry level, common on cheap breakouts
SHT31
Typical accuracy:
±2 %RH, ±0.2 °C
Notes:
Most popular; heater option
SHT35
Typical accuracy:
±1.5 %RH
Notes:
Precision version
SHT40 / SHT41 / SHT45
Typical accuracy:
Better accuracy as the number rises
Notes:
Smaller, lower power, newer design
03

Reading an SHT31 on Arduino

Use the Adafruit SHT31 library, or the sketch below if you prefer plain I2C. The address is 0x44 when the ADDR pin is low, and 0x45 when it is high.

SHT31 raw read (I2C) · Arduino C++Verify & upload in Electrolark
#include <Wire.h>
const uint8_t ADDR = 0x44;

void setup() { Serial.begin(115200); Wire.begin(); }

void loop() {
  Wire.beginTransmission(ADDR);
  Wire.write(0x24); Wire.write(0x00);          // single shot, high repeatability
  Wire.endTransmission();
  delay(20);
  Wire.requestFrom(ADDR, (uint8_t)6);
  uint8_t d[6];
  for (int i = 0; i < 6; i++) d[i] = Wire.read();
  float t  = -45.0 + 175.0 * ((d[0] << 8) | d[1]) / 65535.0;
  float rh = 100.0 * ((d[3] << 8) | d[4]) / 65535.0;
  Serial.print(t); Serial.print(" C  "); Serial.print(rh); Serial.println(" %");
  delay(1000);
}
04

Placement and care

  • ✓Mount it away from the board's regulator, display and any hot component, which warm the sensor and lower the humidity reading.
  • ✓Let air flow over it; a sealed box with the sensor inside will read wrongly.
  • ✓Use the built-in heater briefly to drive off condensation, then wait for it to cool before logging.
  • ✓Keep it clear of solvents, glue fumes and cleaners that damage the sensing layer.
05

Try it: I2c pullup calculator

Change the values and the diagram and results update as you type.

06

Common mistakes to avoid

  • !Mounting the sensor next to a heat source.
  • !Using a sealed enclosure with no airflow.
  • !Putting the sensor in condensing conditions without a protective cap.
  • !Forgetting that two sensors on the same address will clash.
  • !Reading before the first measurement has finished.
07

Frequently asked questions

What is the SHT31 I2C address?

0x44 by default, or 0x45 when the ADDR pin is high.

Is SHT31 better than DHT22?

Yes for accuracy, speed and bus sharing. The DHT22 is a single-wire sensor that is simpler but less accurate.

What is the heater for?

To warm the sensor and drive off condensation so it can recover in damp conditions.

Can I use it outdoors?

Yes in a ventilated radiation shield with a PTFE membrane cap to keep dust and water away.

SHT31 or SHT41?

SHT4x is newer and smaller and uses less power. SHT31 has more ready-made modules and libraries.

Parts for this guide

  • Sensirion SHT31A-DIS-B2.5KS Humidity & Temperature Sensor – I2C Interface, AEC-Q100 Qualified
    ₹429View
  • Texas Instruments HDC1080 Digital Humidity & Temperature Sensor, 0–100%RH, −40°C to +125°C, I2C
    ₹134View
  • TE Connectivity HTU21D HPP845E131R1 Humidity & Temperature Sensor, 0–100%RH, −40°C to +125°C, ±3%RH, I2C
    ₹211View
  • Sensirion SHT41-AD1F-R2 Humidity & Temperature Sensor ±1%RH, I2C, Automotive
    ₹349View
Shop Humidity & Dew Point Sensors

Calculators

I2c pullup calculatorTemperature converter calculator

Terms in this guide

Relative humidityThe amount of water vapour in air as a percentage of the maximum it can hold at that temperature.I2CInter-Integrated Circuit: a two-wire bus (SDA and SCL) that connects many devices by address.CalibrationMeasuring a sensor against known conditions so its raw numbers can be converted into meaningful values, such as dry and wet readings for a soil sensor.1-WireA bus that carries data and timing on a single wire plus ground, with each device identified by a unique 64-bit address. Used by the DS18B20 temperature sensor.HysteresisA deliberate gap between the switch-on and switch-off thresholds of a comparator or thermostat, so a noisy signal does not make the output chatter.

Projects that use it

Put this into practice: 167 step-by-step builds in our project library use parts from this guide.

Beginner · 1–2 hoursTemperature-controlled fanView projectIntermediate · 2 hoursGreenhouse humidity controllerView projectBeginner · 1–2 hoursMini weather station with OLEDView project
Browse all 167 projects

Keep learning

ComparisonBeginnerDHT11 vs DHT22DHT11 vs DHT22 compared: accuracy, range and sampling rate, plus wiring, pull-up, Arduino/ESP32 code and when to pick a BME280 or SHT31.3 min read · SensorsComparisonBeginnerBME280 vs BMP280The BMP280 measures temperature and air pressure; the BME280 adds relative humidity.3 min read · SensorsBuying guideBeginnerHow to Choose a Temperature Sensor for Arduino and ESP32Compare temperature sensors for Arduino and ESP32: DHT22, DS18B20, BME280, LM35, TMP36, NTC thermistors, K-type thermocouples and the MLX90614 IR sensor.3 min read · SensorsConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics FundamentalsBuying guideIntermediateAir Quality SensorsCompare particle, CO2 and VOC sensors for an air monitor: PMS5003 and SDS011, NDIR CO2 vs eCO2, wiring, warm-up, power and placement for honest readings.3 min read · Sensors

Sources

  • Sensirion SHT3x and SHT4x data sheets
  • Texas Instruments HDC1080 data sheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhy choose an SHT sensorSHT3x vs SHT4xReading an SHT31 on ArduinoPlacement and careTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹1,123

Sensirion SHT31A-DIS-B2.5KS Humidity & Temperature Sensor – I2C Interface, AEC-Q100 Qualified · Texas Instruments HDC1080 Digital Humidity & Temperature Sensor, 0–100%RH, −40°C to +125°C, I2C · TE Connectivity HTU21D HPP845E131R1 Humidity & Temperature Sensor, 0–100%RH, −40°C to +125°C, ±3%RH, I2C · Sensirion SHT41-AD1F-R2 Humidity & Temperature Sensor ±1%RH, I2C, Automotive

Run itChange the inputs and watch the output
Serial monitor115200 baud
26.20 C  47.95 %

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question