May be this topic will be a little far from subject of this form. I have a circuit which detects motion in a room. I use relay in this circuit. I want to detect with program in computer if relay switches. I think i have to work with ports but don't know how to send signal to port that i can detect that signal from my program. What is the easy and useful way to do this?