Several ESP32 project require a reliable Z level for precise voltage measurement. Often, a easy solution employs a 1k resistor associated to the Z voltage output and earth. A generates a known level, generally https://compoden.com/collections/cables-connectors