I have a hardware board with a motion detector. I can read the detector with the function int pirGet(). It returns 0 or 1
I want to make a function that returns the status of the last 10 seconds.
If motion is detected the output of the function must remain 1 for 10 seconds.
I want to read the function at any time.. anyone got an idea how to do this ?