added a delay befaure the alert of the bettery