Hi all,
I have modified a DS10A to work as a water level sensor for my sump pit and have set up a macro to e-mail me if activated. All works well BUT....
I do not want an errant splash to trip it. After doing some reading on the forum I thought I'd try my hand at using flags. My thought was to have a flag set to "on" if the two leads from the sensor get wet. If within a specific time frame (say, two minutes), the sensor reports closed (and the flag is on), activate a macro to send the e-mail. If within the specific time frame the sensor is not closed, clear the flag.
Unfortunately, it works as described - meaning that the only time that it pages me is if the sensor was triggered and then within a couple minutes reports closed. If however, the sensor goes straight to closed status (without the "splash" first), no alarm.
I am probably making this too hard. Any ideas how to create a macro that will run when my sensor leads are submerged and not just if they are splashed?
Thanks in advance,
Patrick