How to keep alarm & avoid battery drain