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. ›MCP9808, Sensirion STS35 / STS30 / STS40 / STS21

Component guide · Intermediate · 4 min read

MCP9808, Sensirion STS35 / STS30 / STS40 / STS21

and ST STTS22H / STTS751 Precision Temperature Sensors

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the MCP9808, STS35, STS40 and STTS22H sensors isMCP9808, STS35, STS40 and STTS22H sensors pinoutWiring the MCP9808, STS35, STS40 and STTS22H sensorsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

These are precision I2C temperature-only sensors. The MCP9808 gives plus or minus 0.25 degrees C with an alert pin and eight addresses. Sensirion's STS35, STS30, STS40 and STS21 reach plus or minus 0.1 to 0.2 degrees C. ST's STTS22H (SparkFun Qwiic) and STTS751 are low-power parts with plus or minus 0.5 degrees C, and the STTS2002 and CAT34TS02 are memory-module sensors.

Key specs at a glance

Accuracy
0.1 to 0.2 degrees C (STS3x, STS4x), 0.25 degrees C (MCP9808), 0.5 degrees C (STTS22H, STTS751)
Interface
I2C
Addresses
0x18 to 0x1F (MCP9808), 0x4A / 0x4B (STS3x), 0x44 to 0x46 (STS4x), 0x38 to 0x3F (STTS22H)
Supply
2.2 to 5.5 V (MCP9808, STS3x), 1.08 to 3.6 V (STS4x)
Range
-40 to 125 degrees C
Extras
Alert pin, CRC (Sensirion), one-shot low-power modes

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1DFRobot Fermion MCP9808 High Accuracy I2C Temperature Sensor Module₹739
  • Option 2DFRobot Fermion STS35 High Accuracy Digital Temperature Sensor Breakout – I2C Interface₹889
  • Option 3Sensirion STS30A-DIS-B2.5KS Digital Temperature Sensor ±0.3°C, I2C Interface, 8-pin DFN₹249
  • Option 4Sensirion STS40-CD1B-R3 Temperature Sensor IC, –40°C~125°C, ±0.2°C Accuracy, I²C Output, 16-Bit Resolution, 1.08~3.6VDC, DFN-4₹84
  • Option 5Sensirion STS21 Temperature Sensor ±0.2°C, Digital I2C Output₹219
  • Option 6SparkFun STTS22H Temperature Sensor (Qwiic)₹907
01

What the MCP9808, STS35, STS40 and STTS22H sensors is

The Microchip MCP9808 and Sensirion STS35 are precision I2C temperature sensors with about ±0.25 °C (MCP9808) and ±0.1 °C (STS35) typical accuracy.

Use these when you need a trustworthy temperature, such as a cold-chain logger, incubator or calibration check. They read only temperature; add a humidity sensor if you need RH.

The Sensirion parts send a CRC with each reading, so bad wiring shows up as a CRC error instead of a wrong number.

02

MCP9808, STS35, STS40 and STTS22H sensors pinout

The pins on the MCP9808, STS35, STS40 and STTS22H sensors and what each one does.

PinFunction
VDD, GNDPower
SDA, SCLI2C
ALERT / ADDRAlert output or address pin (part dependent)
PinFunction
VDD, GND
Power
SDA, SCL
I2C
ALERT / ADDR
Alert output or address pin (part dependent)
03

Wiring the MCP9808, STS35, STS40 and STTS22H sensors

STS40 and STTS22H chips are 3.6 V maximum; their breakouts may regulate. Check the board before using 5 V.

MCP9808, STS35, STS40 and STTS22H sensors pinArduino UnoESP32
VDD5 V (MCP9808, STS35 boards) or 3.3 V3.3 V
GNDGNDGND
SDA / SCLA4 / A5GPIO 21 / 22
ALERTD2 (optional)GPIO 27 (optional)
VDD
Arduino Uno:
5 V (MCP9808, STS35 boards) or 3.3 V
ESP32:
3.3 V
GND
Arduino Uno:
GND
ESP32:
GND
SDA / SCL
Arduino Uno:
A4 / A5
ESP32:
GPIO 21 / 22
ALERT
Arduino Uno:
D2 (optional)
ESP32:
GPIO 27 (optional)
04

Example code

DFRobot's STS35 and SparkFun's STTS22H boards have their own Arduino libraries with similar begin and read calls.

Read an MCP9808 (Adafruit library) · Arduino C++Verify & upload in Electrolark
#include <Adafruit_MCP9808.h>

Adafruit_MCP9808 mcp;

void setup() {
  Serial.begin(115200);
  if (!mcp.begin(0x18)) { Serial.println("No MCP9808"); while (1); }
  mcp.setResolution(3);   // 0.0625 C, 250 ms
}

void loop() {
  Serial.print(mcp.readTempC(), 4); Serial.println(" C");
  delay(1000);
}
05

Setup and tuning

Wiring

VCC 2.7 to 5.5 V (MCP9808) or 2.15 to 5.5 V (STS35), GND, SDA and SCL with pull-ups.

Library

use the Adafruit MCP9808 or Sensirion STS3x library.

Address

MCP9808 has 8 addresses with A0 to A2; STS35 has 2.

Placement

mount away from heat sources and in moving air.

Alerts

MCP9808 has an alert pin for set limits.

06

What you need

Shop this list14 of 15 found in our store · ₹4,444

  • DFRobot Fermion MCP9808 High Accuracy I2C Temperature Sensor Module: the part this guide coversDFRobot Fermion MCP9808 High Accuracy I2C Temperature Sensor Module₹739
  • DFRobot Fermion STS35 High Accuracy Digital Temperature Sensor Breakout – I2C Interface: another version this guide coversDFRobot Fermion STS35 High Accuracy Digital Temperature Sensor Breakout – I2C Interface₹889
  • Sensirion STS30A-DIS-B2.5KS Digital Temperature Sensor ±0.3°C, I2C Interface, 8-pin DFN: another version this guide coversSensirion STS30A-DIS-B2.5KS Digital Temperature Sensor ±0.3°C, I2C Interface, 8-pin DFN₹249
  • Sensirion STS40-CD1B-R3 Temperature Sensor IC, –40°C~125°C, ±0.2°C Accuracy, I²C Output, 16-Bit Resolution, 1.08~3.6VDC, DFN-4: another version this guide coversSensirion STS40-CD1B-R3 Temperature Sensor IC, –40°C~125°C, ±0.2°C Accuracy, I²C Output, 16-Bit Resolution, 1.08~3.6VDC, DFN-4₹84
  • Sensirion STS21 Temperature Sensor ±0.2°C, Digital I2C Output: another version this guide coversSensirion STS21 Temperature Sensor ±0.2°C, Digital I2C Output₹219
  • SparkFun STTS22H Temperature Sensor (Qwiic): another version this guide coversSparkFun STTS22H Temperature Sensor (Qwiic)₹907
  • STMicroelectronics STTS22H Digital Temperature Sensor -40°C to +125°C ±0.5°C Accuracy Ultra-Low Power I²C 1.5~3.6V DFN-6: another version this guide coversSTMicroelectronics STTS22H Digital Temperature Sensor -40°C to +125°C ±0.5°C Accuracy Ultra-Low Power I²C 1.5~3.6V DFN-6₹168
  • STMicroelectronics STTS751 Digital Temperature Sensor, I²C/SMBus, -40°C to +125°C, ±1°C Accuracy: another version this guide coversSTMicroelectronics STTS751 Digital Temperature Sensor, I²C/SMBus, -40°C to +125°C, ±1°C Accuracy₹78
  • STMicroelectronics STTS751-0DP3F TDFN-6(2×2) Temperature Sensor IC: another version this guide coversSTMicroelectronics STTS751-0DP3F TDFN-6(2×2) Temperature Sensor IC₹59
  • STMicroelectronics STTS2002 Digital Temperature Sensor with 2 Kb SPD EEPROM – I²C/SMBus Interface, DFN8 Package: another version this guide coversSTMicroelectronics STTS2002 Digital Temperature Sensor with 2 Kb SPD EEPROM – I²C/SMBus Interface, DFN8 Package₹439
  • onsemi CAT34TS02VP2GT4C Digital Temperature Sensor IC – TDFN-8-EP(2×3): another version this guide coversonsemi CAT34TS02VP2GT4C Digital Temperature Sensor IC – TDFN-8-EP(2×3)₹52
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • Resistor assortment kit (30 values): pull-up and divider resistorsResistor Assortment Kit (30 Values)₹33
  • 0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
07

Alternatives and when to choose them

  • ✓TMP102 and TMP119: TMP119 is even more accurate.
  • ✓LM75 family: cheaper, 1 to 2 degrees C.
  • ✓SHT3x: adds humidity.
08

Common mistakes to avoid

  • !Mounting near hot parts.
  • !Sealing the sensor in still air.
  • !Expecting humidity readings.
  • !Leaving address pins floating.
09

Frequently asked questions

How accurate is the MCP9808?

Typically ±0.25 °C from -40 to 125 °C, which is far better than an LM35 or DHT11.

Is the STS35 more accurate?

Yes, about ±0.1 °C typical in its best range.

Can I use several sensors on one bus?

Yes, up to 8 MCP9808 or 2 STS35 per bus.

Why does my reading drift up?

Heat from the board, regulator or nearby parts is warming the sensor.

Does it measure humidity?

No. They measure temperature only; add an SHT4x or BME280 for humidity.

Parts for this guide

  • DFRobot Fermion MCP9808 High Accuracy I2C Temperature Sensor Module
    ₹739View
  • DFRobot Fermion STS35 High Accuracy Digital Temperature Sensor Breakout – I2C Interface
    ₹889View
  • Sensirion STS30A-DIS-B2.5KS Digital Temperature Sensor ±0.3°C, I2C Interface, 8-pin DFN
    ₹249View
  • Sensirion STS40-CD1B-R3 Temperature Sensor IC, –40°C~125°C, ±0.2°C Accuracy, I²C Output, 16-Bit Resolution, 1.08~3.6VDC, DFN-4
    ₹84View
  • Sensirion STS21 Temperature Sensor ±0.2°C, Digital I2C Output
    ₹219View
  • SparkFun STTS22H Temperature Sensor (Qwiic)
    ₹907View
  • STMicroelectronics STTS22H Digital Temperature Sensor -40°C to +125°C ±0.5°C Accuracy Ultra-Low Power I²C 1.5~3.6V DFN-6
    ₹168View
  • STMicroelectronics STTS751 Digital Temperature Sensor, I²C/SMBus, -40°C to +125°C, ±1°C Accuracy
    ₹78View
  • STMicroelectronics STTS751-0DP3F TDFN-6(2×2) Temperature Sensor IC
    ₹59View
  • STMicroelectronics STTS2002 Digital Temperature Sensor with 2 Kb SPD EEPROM – I²C/SMBus Interface, DFN8 Package
    ₹439View
  • onsemi CAT34TS02VP2GT4C Digital Temperature Sensor IC – TDFN-8-EP(2×3)
    ₹52View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Resistor Assortment Kit (30 Values)
    ₹33View
  • 0.96" OLED Display 128x64
    ₹139View
Shop Temperature & Thermal Sensors

Keep learning

Component guideIntermediateTMP102, TMP112, TMP101, TMP103These TI-style I2C temperature sensors come in very small packages for wearables and boards.3 min read · SensorsComponent guideBeginnerLM75, LM75A, TMP75, TMP175, PCT2075, STLM75, ADT75The LM75 family are tiny I2C temperature sensors with a built-in thermostat output (OS).5 min read · SensorsComparisonIntermediateSHT3x, SHT4x and Digital Humidity SensorsSensirion SHT3x and SHT4x chips give accurate temperature and relative humidity over I2C and are a big step up from the DHT11.3 min read · SensorsComparisonBeginnerTemperature Sensor ICsCompare analog LM35 and TMP36 with digital MCP9808 and TMP117 temperature sensors: accuracy, voltage, wiring, formulas and Arduino and ESP32 code.3 min read · Sensors

Sources

  • Microchip MCP9808 datasheet
  • Sensirion STS3x and STS4x datasheets
  • ST STTS22H datasheet

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

On this page
Short answerWhat the MCP9808, STS35, STS40 and STTS22H sensors isMCP9808, STS35, STS40 and STTS22H sensors pinoutWiring the MCP9808, STS35, STS40 and STTS22H sensorsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon 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 guide (Arduino Uno)7 items · ₹1,604

DFRobot Fermion MCP9808 High Accuracy I2C Temperature Sensor Module · STMicroelectronics STTS751 Digital Temperature Sensor, I²C/SMBus, -40°C to +125°C, ±1°C Accuracy · STMicroelectronics STTS751-0DP3F TDFN-6(2×2) Temperature Sensor IC · STMicroelectronics STTS2002 Digital Temperature Sensor with 2 Kb SPD EEPROM – I²C/SMBus Interface, DFN8 Package · onsemi CAT34TS02VP2GT4C Digital Temperature Sensor IC – TDFN-8-EP(2×3) · Resistor Assortment Kit (30 Values) · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Resolution 3 gives 0.0625 °C steps (250 ms per reading). Accuracy is +/-0.25 °C typical.

Serial monitor115200 baud
26.2500 C

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