Add a high-side PFET switch connecting a voltage divider to an ADC input to allow reading the battery voltage.
Add a high-side PFET switch connecting a voltage divider to an ADC input to allow reading the battery voltage.