Recognizing double touch

Hello everyone,

I’m working with a touch sensor, and I need to differentiate a single touch from a double touch. Basically I compare the signal with a value that means contact with the sensor, and this outputs an 1 and a 0 for contact and non contact.
So my signal for a double touch would go something like:
0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1
and I’m not sure how to store this data to compare it, or if there’s a node I don’t know about that would help my do this more easily. I could also program this in C# but I thought I should ask here first.

Thanks for your time,
Juan

Easiest way would be to attach an io box and then disconnect the input connection, it should keep the input. You can then sift or = it to compare?
Is that what your looking for?
S+H might work if it needs to be compared dynamically?

monoflop?.. no text …

Ah if thats data over time, then a monoflop into a timerflop, monoflop holds it for a time, and if its retriggered, trigger the timerflop which triggers after its 1 for a certain time.