Hi,
My current situation is, i have 5 sensor to determine either "ON or OFF" situations and 1 Analog input 4-20 mA to determine height of water level.
Refer to my 5 sensor ( on relay with state "ON" / "OFF")
if the sensor trigger and send sms to indicate "SYSTEM SENSOR n NOT STABLE" and after 5 min and still "ON" send sms continuously with interval of 5 min. If the changes happen from "ON" to "OFF" send SMS once to indicate "SYSTEM SENSOR n STABLE" and wait for any changes happen from 0 to 1 again.
Refer to my analog input, display my reading in LCD every 1 sec or depends. if my water level is increasing above 5 meter then check for every 30 sec if the water level is higher or equal to 5 meter then sending sms. If below 5 m send sms once and keep on monitoring.
I am just thinking on worst conditons. Summary of time interval
For sensor if 5 sensor trigger at once:
then need 50 secs to send SMS and next after 5 mins.
For analog input if trigger above 5 meter
then very 30 sec's.
FIFO method would be good for this applications.
Thanks