I'm trying to send data over xbee and having an issue with noisy analog sensors.
The xbee isn't the issue, just the function itself.
I want to create a function which sets a "sendState' variable to HIGH if the sensor changes more than two increments/decrements. It will only go to LOW if it recognises that the changes aren't going over the two inc/decs.
If the variable is HIGH then I can proceed to sendData.
Can anyone suggest a solution. I've spent countless days trying to find one and my honours project deadline is looming. I hope this explained clearly.
Thanks in advance.