Additional Information about the issue:
I unplugged the battery and ran the code again, its outputting the same as when the battery is connected: 5466.39mV (5.5V). I have also verified that the polarity of the battery is correct.