Door contacts question

hi

have a look at the pushbutton tutorial on the main Arduino site. Once you get that working, you can add some code to send the switch state over USB.

D