Component guide · Intermediate · 3 min read
MAX31855 Thermocouple Module

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The MAX31855 reads a K-type thermocouple and gives the temperature over a read-only SPI bus in 0.25 °C steps. It covers about -200 to 1350 °C, has cold-junction compensation built in, and flags faults such as an open probe or a short to supply or ground. It runs from 3.3 V (many modules accept 5 V) and is the newer replacement for the MAX6675.
Key specs at a glance
- Thermocouple
- K-type
- Range
- About -200 to +1350 °C
- Resolution
- 0.25 °C (14-bit)
- Accuracy
- About ±2 °C over -200 to 700 °C
- Interface
- Read-only SPI (SO, SCK, CS)
- Faults
- Open circuit, short to GND, short to VCC
What the MAX31855 module is
A thermocouple makes a tiny voltage, about 41 µV per °C, where its two metals join. The MAX31855 amplifies it, measures its own temperature for cold-junction compensation, and outputs the result as digital data.
Use it for kilns, ovens, reflow plates, 3D printer hot ends and exhaust temperatures, where a normal sensor would melt.
MAX31855 module pinout
The pins on the MAX31855 module and what each one does.
| Pin | Function |
|---|---|
| VIN / VCC | Supply, 3.3 V (3 to 5 V on modules with a regulator) |
| GND | Ground |
| DO / SO | SPI data out |
| CLK / SCK | SPI clock |
| CS | Chip select, LOW to read |
| T+ / T- | Thermocouple: yellow (+) and red (-) on most K-type probes |
- VIN / VCC
- Supply, 3.3 V (3 to 5 V on modules with a regulator)
- GND
- Ground
- DO / SO
- SPI data out
- CLK / SCK
- SPI clock
- CS
- Chip select, LOW to read
- T+ / T-
- Thermocouple: yellow (+) and red (-) on most K-type probes
Wiring the MAX31855 module
If the temperature falls when you heat the probe, swap the two thermocouple wires. Many probes have a metal tip bonded to the junction: keep it off grounded metal or you may get a short-to-GND fault.
| MAX31855 module pin | Arduino Uno | ESP32 |
|---|---|---|
| VIN | 5V (if regulated) or 3.3V | 3V3 |
| GND | GND | GND |
| DO | D12 | GPIO 19 |
| CLK | D13 | GPIO 18 |
| CS | D10 | GPIO 5 |
- VIN
- Arduino Uno:
- 5V (if regulated) or 3.3V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- DO
- Arduino Uno:
- D12
- ESP32:
- GPIO 19
- CLK
- Arduino Uno:
- D13
- ESP32:
- GPIO 18
- CS
- Arduino Uno:
- D10
- ESP32:
- GPIO 5
Example code
Several modules can share SCK and DO; give each its own CS pin.
#include <SPI.h>
#include "Adafruit_MAX31855.h"
Adafruit_MAX31855 tc(10); // CS pin, hardware SPI
void setup() {
Serial.begin(115200);
delay(500);
if (!tc.begin()) { Serial.println("MAX31855 not found"); while (1); }
}
void loop() {
double c = tc.readCelsius();
if (isnan(c)) {
uint8_t e = tc.readError();
if (e & MAX31855_FAULT_OPEN) Serial.println("Probe not connected");
if (e & MAX31855_FAULT_SHORT_GND) Serial.println("Probe shorted to GND");
if (e & MAX31855_FAULT_SHORT_VCC) Serial.println("Probe shorted to VCC");
} else {
Serial.print(c); Serial.println(" C");
}
delay(1000);
}Setup and tuning
the chip is calibrated for K-type; other types read wrong.
use K-type thermocouple extension wire, not copper, or you add errors.
the module measures its own temperature for compensation, so keep it away from the heat source.
in noisy machines, add a 10 nF capacitor across T+ and T-.
What you need
Shop this list5 of 6 found in our store · ₹1,357
MAX31855 K-Type Thermocouple Module – SPI Interface, 3.3-5V: the part this guide coversMAX31855 K-Type Thermocouple Module – SPI Interface, 3.3-5V₹579- 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
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Relay module: to switch a heater for a simple controllerHumidity Sensitive Switch Relay Module₹201Closest match, check the specs
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- MAX6675 thermocouple module: older, 0 to 1024 °C, 0.25 °C steps, no negative temperatures.
- MAX31865 RTD module: more accurate PT100 readings up to about 400 °C.
- DS18B20: simple digital sensor for -55 to 125 °C.
Common mistakes to avoid
- Reversing the thermocouple wires so the reading falls as it heats.
- Using a J or T-type probe with a K-type chip.
- Extending the probe with copper wire.
- Letting a grounded probe tip touch the chassis, giving a short-to-GND fault.
Frequently asked questions
MAX31855 or MAX6675?
MAX31855 for new projects: wider range including below zero, fault detection and 3.3 V support.
What thermocouple does it need?
K-type. Other types need a different version of the chip.
Does it work at 5 V?
The chip is 3.3 V, but most modules have a regulator and level shifting for 5 V boards.
Why does it read NaN?
A fault: usually the probe is unplugged or the tip is shorted to ground.
How hot can it measure?
Up to about 1350 °C, limited in practice by the probe you use.
Parts for this guide
Keep learning
Sources
- MAX31855 cold-junction compensated thermocouple-to-digital converter datasheet (Maxim Integrated)
- Adafruit MAX31855 library documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


