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
On this page
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
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.
MCP9808, STS35, STS40 and STTS22H sensors pinout
The pins on the MCP9808, STS35, STS40 and STTS22H sensors and what each one does.
| Pin | Function |
|---|---|
| VDD, GND | Power |
| SDA, SCL | I2C |
| ALERT / ADDR | Alert output or address pin (part dependent) |
- VDD, GND
- Power
- SDA, SCL
- I2C
- ALERT / ADDR
- Alert output or address pin (part dependent)
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 pin | Arduino Uno | ESP32 |
|---|---|---|
| VDD | 5 V (MCP9808, STS35 boards) or 3.3 V | 3.3 V |
| GND | GND | GND |
| SDA / SCL | A4 / A5 | GPIO 21 / 22 |
| ALERT | D2 (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)
Example code
DFRobot's STS35 and SparkFun's STTS22H boards have their own Arduino libraries with similar begin and read calls.
#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);
}Setup and tuning
VCC 2.7 to 5.5 V (MCP9808) or 2.15 to 5.5 V (STS35), GND, SDA and SCL with pull-ups.
use the Adafruit MCP9808 or Sensirion STS3x library.
MCP9808 has 8 addresses with A0 to A2; STS35 has 2.
mount away from heat sources and in moving air.
MCP9808 has an alert pin for set limits.
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
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.
Common mistakes to avoid
- Mounting near hot parts.
- Sealing the sensor in still air.
- Expecting humidity readings.
- Leaving address pins floating.
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
- ₹739View
- ₹889View
- ₹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- ₹219View
- ₹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- ₹78View
- ₹59View
STMicroelectronics STTS2002 Digital Temperature Sensor with 2 Kb SPD EEPROM – I²C/SMBus Interface, DFN8 Package₹439View- ₹52View
- ₹359View
- ₹389View
- ₹33View
- ₹139View
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

