Added a warning when the battery level is low