I want to read only the voltage of battery connected. Below is the picture of the connections I made. Battery voltage is 3.7v but I'm getting different values every time when i read shunt voltage (0x01) register which has huge difference. Is there any mistake in my connections?? Please guide me.
Connections
Output
read 256 0x100 0b100000000
read 65535 0xffff 0b1111111111111111
read 256 0x100 0b100000000
read 512 0x200 0b1000000000
Thanks in advance!!