I have a set of infrared beam devices, where one sends a beam to another which is the receiver. The receiver has an inbuilt relay.
I want to to be able to get the arduino to do something when the beam is broken.
I have tried pushing a digital high signal into the relay and listening for the signal on another arduino pin - in the hope then when it closes the arduino will receive the signal. However it appears the arduino always receives the signal, even when the relay is open the arduino still activates as if it is getting a digital signal. I was under the impression a relay was a hardware switch?
I have also tried using an interrupt command - in the hope that something will change when the relay changes, however nothing at all happens in this case? I have measured through the relay with a multimeter and it is indeed open when open and closed when closed - however the arduino always seem to receive a signal through it regardless?
Is there a better way to accomplish my goal - or have i missed something?