Studio XIAO nRF52840 (Sense) battery pins number

What is the BoardSupportPackage you are using? Is it “Seeed nRF Boards”? Or “Seeed nRF52 mbed-enabled Bloard”?

Show us your sketch.