Several ESP32 design need a reliable Z reference in correct voltage reading. Often, a basic method utilizes a 1k component linked between the Z level output and ground. The provides a established level, typically https://compoden.com/collections/batteries