I have a SRD-12VDC-SL-C relay with this configuration:
And I want to trigger it with 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.