Measuring Vbat on XIAO Expansion Board

The battery voltage is divided to 3.3V or less and connected to an unused port for AD conversion.