Ok then. I have seen the schematics but I am unsure to have understood.
-My existing alarm has a siren output (12v) that I have connected to the relay switch (on the pins side, as an input for the relay). I can see the relay switch on and off when the alarm triggers the siren.
- The screwed wires would go to the raspberry gpio (COM to ground and AO to an input port).
Problem is I get wavering state on the input pin so it does not understand if the alarm is on or not and the relay switches on only when the alarm triggers. Should I put a transistor bewtween the gpio and the relay?what transistor?
Is the circuit safe for the raspberry?
Thanks