XIAO_BLE_Sense(mbed 2.7.2) battery charge and voltage monitor, analogRead(P0_31) does not work

Thanks for the information !
I see. You created a voltage divider and you read the value with the A0 pin.

I’m not planning to use the mbed OS, so I should be fine.
If I want to plug the battery through the pads and read the battery voltage from PIN_VBAT,
would that give me an accurate reading ?

From what I read in that post, I was under the impression there was an issue with inconsistent readings.

I there a difference with reading the battery voltage from VBAT and from P0.31?

I see there is a risk to burn out the P0.31 pin if the ADC function of Pin P0.14 is off (which is done with setting the Pin P0.14 high).