Several ESP32 design require a stable Z voltage to correct analog measurement. Often, a basic approach involves a 1000-ohm component linked to the Z level output and earth. This provides a established level, usually https://compoden.com/collections/sensors