Many ESP32 design require a accurate Z reference to accurate analog conversion. Often, a simple method involves a 1000-ohm resistance linked to the Z level junction and earth. This provides a well-defined level, usually https://price-of-arduino-uno407354.bloggosite.com/50688789/esp32-s3-projects-utilizing-a-1k-resistor-for-z-voltage