hi i have a UNO R3 AND 4 CHANNELS 12V RELAY MODULO. I WANT TO PRESS 3 TIMES ON A SWITCH AND ACTIVATED THE RELAY IF I PRESS LESS OR MORE THAN 3 TIME IT WILL RESET CAN ANY ONE HELP ME WITH THE CODE THANKS
Why are you shouting?
What have you tried? Can you control the relays with the Uno? Can you connect a switch and read its state?
Have a look at the state change detection example in the IDE (File, Examples, Digital). It shows how to react to a switch state change and count switch presses. Then you can use if-else if-else or switch-case statements to do what you want depending on press count.
IF I PRESS LESS OR MORE THAN 3 TIME IT WILL RESET
That, to me, makes little sense. Perhaps you can explain what you want to happen more clearly.
Press 3 times in how long? Within a week? An hour? A second? If you want to look for more OR less than 3 presses you must have some time in mind?