I'll build the switch in the week end and test it. I just find out in the code the comment related to the GPIO port tu check for signal.
I must use the resistors? Why? I have only very basic knowledge on this kind of things (GPIO)