Many ESP32 project utilize a accurate Z reference in precise voltage reading. Typically, a easy solution utilizes a 1000-ohm component connected to the Z level junction and earth. A generates a well-defined voltage, https://compoden.com/collections/displays