Battery voltage monitor and AD conversion for XIAO_ESP32C

I think it stops working when the voltage falls below the minimum operating voltage of ESP32C3, but I don’t think there is a function to turn off the discharge from the battery.