Fixed battery miscalculation bug

Battery level was being read with VREF+ pin, instead of internal VDD.
VDD is now detected and the proper value is used.