I found the answer to my last question and now I'm able to switch on a led when I press a buttton...now I ask you... How can I control more led with more magnetic sensors?? for examples.. I have 6 Magnetic sensors and each one is connected to a different led.. I want that led n°1 switchs on when magnetic sensor number1 gets signals... What I have to do and write on the program?? can somebody answer me??thank you..