I have a keypad that sends the pressed button information via Zigbee and I can use those as triggers etc. What I want to do is do an action if the user enters the correct sequence of inputs in a short period. For example if user enters 6132 in less than 5 seconds, I would like to trigger something. I dont know where to start.
My idea is to somehow store the sequence of inputs into a number helper, then compare it with the expected number. I can trigger an action when 6 is pressed but i dont know how i can store the sequential inputs into the helper and then how to compare with desired number. any ideas?