Many ESP32 project utilize a stable Z reference to correct voltage conversion. Often, a simple method employs a 1k resistor associated to the Z level output and earth. The generates a known voltage, typically about https://compoden.com/collections/robotics-motion