I have a SRD-12VDC-SL-C relay with this configuration: https://robu.in/product/1-roadchannel-relay-module-light-coupling-12v/ And I want to trigger it with PIR Motion Sensor Detector Module HC-SR501 https://robu.in/product/pir-motion-sensor-detector-module-hc-sr501/ The problem with direct connection to PIR is, when I connect PIR with 12v DC the Relay remains always ON, i.e. trigger from PIR does not switch it off. And when I connect it via 5V supply the Relay remains always OFF. The trigger output of PIR is 3.3V how can I rectify this problem? by adding some resistor/FETs, or something else.
Edit: The voltage at Relay-In(Green) is 10.5V and the relay is OFF it need to go below 9V in order to switch the Relay ON. When I connect it to PIR trigger it goes down to 2.7V (Thus Switching ON the relay, below 9V). And when the PIR trigger of 3.3V comes it goes up to 7.2V but because it is still below 9V) Relay does not switch.