I would like to know if there is a way of knowing if a relay is connected/disconnected.
If I try:
GPIO.output( self.PIN , 1 ) if( GPIO.input( self.PIN ) == 0 ) self.value = 'Device not connected'
It returns 1. Even if the relay is disconnected.
Is there any other way to approach this problem?
EDIT: The device that I'm working with is SRD-05VDC-SL-C 2-relay module.