Thanks for answering.
I have a lever that moves up and down that hits switches when it moves .
>1. Does the counting stop at either 0 or 5 even the switch is still on?
Yes. The count needs to max at five and not go higher and it needs to stop at 0 and not go lower. Counting all the number in between.
>2. Why use two separate switches and what to do if both switches is ON?
I was thinking of a roller switch as it needs to have a long throw. Theyare cheap and you can get them water proof.
I guess I might be able to use a leaf switch as well if I put a hole on the lever.
I’m thinking I may need to use a pic or something like a basic stamp that I can program.
I hope that explains it more.
Thanks