Many ESP32 project need a reliable Z level for precise analog reading. Frequently, a simple method involves a one-kilohm resistor linked to the Z voltage output and earth. This provides a well-defined level, generally https://compoden.com/collections/motors