Measure battery voltage with onboard voltage divider

For anyone that needs to measure the battery voltage, you can use:

float batVoltage = analogRead(ADC_BATTERY) * 3.3 / 1023.0 * 1.275;//1.275 is derived from ADC_BATTERY voltage divider