Numerous ESP32 project utilize a stable Z reference to correct analog reading. Often, a simple approach employs a one-kilohm resistor linked to the Z reference pin and ground. The provides a known potential, typically https://compoden.com/collections/power-energy