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?
Circuit and ports
I would connect the device to the serial port - RX and GND should be enough. You may even be able to download a program that listens to the port - but to react, I think you have to make the code yourself... 
Related topics
