Many ESP32 project require a stable Z reference in correct voltage reading. Typically, a basic solution involves a 1k resistor connected between the Z level output and ground. This creates a established level, typically https://compoden.com/collections/all-kits