Several ESP32 project utilize a accurate Z level for precise signal reading. Often, a basic approach utilizes a 1k resistor associated between the Z level output and reference. This provides a well-defined voltage, https://compoden.com/collections/robotics-motion