How(where) do i connect a relay to 9pin port if i want to import a single signal to pc for use in python(basic counter program). I'm working on a heart rate counter
If you are talking about the 9 pin serial comms port, then no, unless the program you are using can sense one of the control lines on the port . You can however read and send data into and out of a parallel printer port.