Numerous ESP32 design need a accurate Z level in correct analog measurement. Often, a basic approach employs a 1k resistor connected between the Z voltage pin and earth. The creates a known potential, generally https://compoden.com/collections/robotics-motion