How to read battery data