Many ESP32 application need a stable Z level for correct signal reading. Typically, a simple solution employs a 1000-ohm resistor associated across the Z reference junction and earth. A creates a well-defined potential, https://compoden.com/collections/batteries