Added the send_alerts function to distribute email alerts when flow rate is above user requested threshold