Check battery level status
Instead of getting exact battery percentage, you can get battery level status described by device_battery_level_e enum, which gives you practical information about how critical the current battery level is (is the battery full, high, low, critical or empty).