Added battery sense enable

1. Added battery sense enable using a 4066 chip so resistor divider only
draws current when battery level is sensed.
2. Corrected an error where batteryPin was declared as output, where it
should be an input.