What is a TMP102 sensor ?
The TMP102 is a digital temperature sensor with an I²C interface, designed by Texas Instruments.
Compact, precise, and with very low power consumption, it is ideal for embedded applications, connected objects, and compact electronic boards (Arduino, ESP32, Raspberry Pi, etc.).
Its operation is based on an integrated diode sensor and a 12-bit analog-to-digital conversion (ADC), providing the temperature directly in the form of digital data.
Operating principle
The TMP102 measures internal temperature using a PN junction whose voltage varies with temperature (similar principle to a diode thermometer).
This voltage is converted by a ΔΣ (Delta-Sigma) converter into a digital value, transmitted via the I²C bus.
T(°C) = Binare code x 0,0625
Each increment (LSB) represents 0.0625 °C.
The unit communicates on the I²C bus according to the master/slave protocol.
Temperature curve / numerical value (12-bit resolution)
| Temperature (°C) |
Numerical value (hex) | Binary output (12bits) |
-40 |
0xF580 | 1111 0101 1000 0000 |
| 0 | 0x0000 | 0000 0000 0000 0000 |
25 | 0x1900 | 0001 1001 0000 0000 |
| Type 85of case | 0x5500 | 0101 0101 0000 0000 |
125 | 0x7D00 | 0111 1101 0000 0000 |
💡 Each LSB = 0.0625 °C, which allows for very fine resolution for a compact sensor.
Principle diagram (I2C connection)
+3.3V │ [TMP102] │ SDA ─────────┐ │ SCL ─────────┤── [I²C Microcontroller] │ ALERT (option) │ GND ─────────┘
💡 The I²C bus allows multiple sensors to be connected on the same SDA/SCL lines using distinct addresses.
Application areas
🌡️ Thermal surveillance of electronic boards
🧠 Embedded IoT sensors and wearables
🔋 Batteries, servers, laptops
🧪 Precision instrumentation (DAQ, microcontrollers)