Esp32 lora v3 voltage reference for lipo battery monitoring

hi
i am using esp32 lora V3 i have one doubt i used adc_ch1 for battery monitoring i want to use lithium polymer battery monitoring using adc for adc voltage reference what i give which pin?

If you are just wanting to monitor the voltage of a [LiPo] battery connected through the JST/Molex 1.25 connector on the bottom of the board, this discussion might help. If that’s not what you had in mind, we might need a little more information.

in pcb we used external charging circuit so we decided adc_ch1 pin (gpio 2) for adc batt monitoring i want what is the ref voltage we need to externally or if internal ref is automatically enable or not or we need to enable using registers ? if available give test code

Well, what did you try, what is not working? The ESP32 isn’t known for its ADC performance and I’ve pretty much never been able to make it better by using a custom VRef. But then I haven’t really needed life-critical accuracy of the battery voltage - it’s much harder to accurately predict the battery % anyway!

here we are using pcb external charging circuit external battery connector i am not using inbuild battery connector i am using adc_ch1 gpio 2pin i need to vref or its internal vref can support for adc_ch1 can you share code for adc_ch1 gpio 2 pin battery monitoring

I still see no answer to this question, nor a response in any meaningful way to the rest of my message. You are still repeating your original post. We need more info to be able to help you.

The various board support packages provide many examples for reading the ADC and there is a blizzard of websites explaining the ESP32 ADC functionality - like RandomNerdTutorials.