The ESP32 has an analog to digital converter built into it with a resolution of up to 12 bits which is 4096 distinct values. What that means is that 0 volts will produce a digital value of 0 while the maximum voltage will produce a digital value of 4095.
ESP32 Analog Input with Arduino IDE
DOIT ESP32 DEVKIT V1 Board · Issue #544 · espressif/arduino-esp32 · GitHub
Measure analog voltage on ESP32 with ADC
ESP32 Basics - Analog-to-digital Converter (ADC)
Getting Started with the ESP32 - Using the Arduino IDE
Analog input on ESP32 (ESP-WROOM-32) : r/esp32
ESP32 Pinout: How use GPIO pins ?
L4: Analog input - Physical Computing
ESP32 Analog Input with Arduino IDE