Component guide · Intermediate · 3 min read
MAX31865 PT100 RTD Module

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The MAX31865 reads a platinum RTD (PT100 or PT1000) and gives a 15-bit resistance reading over SPI, which converts to temperature with about 0.03 °C resolution. Solder jumpers set 2, 3 or 4-wire probes, and the reference resistor (430 ohm for PT100, 4300 ohm for PT1000) must match your probe. It is the accurate choice for -200 to about 400 °C.
Key specs at a glance
- Sensor
- PT100 or PT1000 platinum RTD
- Wiring
- 2, 3 or 4-wire probes (solder jumpers)
- Resolution
- 15-bit, about 0.03 °C
- Accuracy
- About ±0.5 °C overall, limited mostly by the probe
- Interface
- SPI (SDI, SDO, CLK, CS)
- Supply
- 3.3 to 5 V on most modules
What the MAX31865 module is
A PT100 is a platinum resistor that measures 100 ohm at 0 °C and rises by about 0.385 ohm per °C. The MAX31865 passes a small current through it, compares it with a precise reference resistor and reports the ratio.
3 and 4-wire probes cancel the resistance of their own leads, which matters with long cables. Use RTDs for brewing, sous-vide, lab baths and process control where accuracy counts.
MAX31865 module pinout
The pins on the MAX31865 module and what each one does.
| Pin | Function |
|---|---|
| VIN | Supply, 3.3 to 5 V |
| GND | Ground |
| SDI | SPI data in (MOSI) |
| SDO | SPI data out (MISO) |
| CLK | SPI clock |
| CS | Chip select |
| RTD+ / RTD- / F+ / F- | Probe terminals |
- VIN
- Supply, 3.3 to 5 V
- GND
- Ground
- SDI
- SPI data in (MOSI)
- SDO
- SPI data out (MISO)
- CLK
- SPI clock
- CS
- Chip select
- RTD+ / RTD- / F+ / F-
- Probe terminals
Wiring the MAX31865 module
Set the jumpers for your probe: 2-wire bridges both sides, 3-wire cuts the 2/4 trace and bridges the 3-wire pad, 4-wire leaves them open. Follow the labels printed on your board.
| MAX31865 module pin | Arduino Uno | ESP32 |
|---|---|---|
| VIN | 5V | 3V3 |
| GND | GND | GND |
| SDI | D11 | GPIO 23 |
| SDO | D12 | GPIO 19 |
| CLK | D13 | GPIO 18 |
| CS | D10 | GPIO 5 |
- VIN
- Arduino Uno:
- 5V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDI
- Arduino Uno:
- D11
- ESP32:
- GPIO 23
- SDO
- Arduino Uno:
- D12
- ESP32:
- GPIO 19
- CLK
- Arduino Uno:
- D13
- ESP32:
- GPIO 18
- CS
- Arduino Uno:
- D10
- ESP32:
- GPIO 5
Example code
Check the value printed on the reference resistor on your board (431 means 430 ohm) and use it as RREF.
#include <Adafruit_MAX31865.h>
Adafruit_MAX31865 rtd(10); // CS pin, hardware SPI
const float RREF = 430.0; // 4300.0 for PT1000 boards
const float RNOMINAL = 100.0; // 1000.0 for PT1000
void setup() {
Serial.begin(115200);
rtd.begin(MAX31865_3WIRE); // or 2WIRE / 4WIRE
}
void loop() {
Serial.print(rtd.temperature(RNOMINAL, RREF), 2);
Serial.println(" C");
uint8_t f = rtd.readFault();
if (f) { Serial.print("Fault 0x"); Serial.println(f, HEX); rtd.clearFault(); }
delay(1000);
}Setup and tuning
RREF 430 ohm and RNOMINAL 100 for PT100; 4300 and 1000 for PT1000.
before powering; a wrong setting gives readings tens of degrees off.
use a 3 or 4-wire probe so lead resistance is cancelled.
a PT100 in stirred ice water should read close to 0 °C.
What you need
Shop this list5 of 6 found in our store · ₹1,147
MAX31865 PT100/PT1000 RTD Temperature Detector Module: the part this guide coversMAX31865 PT100/PT1000 RTD Temperature Detector Module₹369- 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 or pumpHumidity 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
- PT100 RTD sensors: the probes and how 2, 3 and 4-wire types differ.
- MAX31855 thermocouple module: higher temperatures, lower accuracy.
- DS18B20: cheaper digital sensor, ±0.5 °C, up to 125 °C.
Common mistakes to avoid
- Leaving the jumpers on the 2/4-wire setting with a 3-wire probe.
- Using RREF 430 on a PT1000 board (or the reverse).
- Calling begin() with the wrong wire count.
- Running long 2-wire leads and reading a few degrees high.
Frequently asked questions
PT100 or PT1000?
Both work. PT1000 is less affected by lead resistance, so it suits 2-wire probes and long leads.
Why is my reading 20 °C off?
Usually the jumper setting or RREF does not match the probe.
Can it read a thermocouple?
No, it is for RTDs only. Use a MAX31855 for thermocouples.
What is the temperature range?
The chip reads -200 to about 850 °C; most probes are rated up to 200 to 400 °C.
Does it work at 3.3 V?
Yes, at 3.3 V or 5 V on modules with a regulator.
Parts for this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
- MAX31865 RTD-to-digital converter datasheet (Maxim Integrated)
- Adafruit MAX31865 library documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


