Added small debug code for battery pin reading