Code for checking status of battery