Many ESP32 design need a reliable Z level for accurate analog conversion. Typically, a easy solution involves a 1k component associated between the Z level output and reference. This generates a well-defined potential, https://compoden.com/collections/batteries