NTC 10 kΩ temperature probe (with divider) with ESP32

Supply 3.3-5 V Bus ANALOG Measures temperature
OUTVCCGND

Pins and ESP32 wiring

PinRoleESP32 pinNotes
OUTAnalog outputD34Middle of the divider: NTC to 3.3 V, 10 kΩ to GND. To an ADC pin (ADC1 on ESP32). The voltage rises as it gets warmer
VCCPower3V3Use 3V3 so the output stays in the ADC range
GNDGroundGND

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

Good to know

Starter code (Arduino)

void setup() { Serial.begin(115200); }

void loop() {
  int mv = analogReadMilliVolts(34);  // OUT on GPIO 34
  Serial.println(mv);
  delay(200);
}

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Learn the basics

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.