Read ESP32C3 battery voltage?

Good day,

Some folks succeded reading latest XIAO Sense V-In voltages either by using non-mbed libraries or by using a voltage divider.

=> Has anyone tried to do the same for ESP32C3 knowing the library is not the same ?
=> Is the hardware solution consisting on using a voltage divider OK for the ESP32C3 ?

Thank you

XIAO BLE Sense battery level and charging status - Products & Technology / XIAO - Seeed Forum (