To test alerts, you may need to temporarily increase the UPDATE_INTERVAL in your sensor code so it checks more frequently.
UPDATE_INTERVAL