I'm using a HC-SR501 PIR sensor and a 12V relay to switch between green (NO) and red (NC) on a LED strip, everything being powered by a 12V power supply.
Without any motion in the room, the LED strip changes color from red to green and back to red, every 24 and 45 seconds respectively, with the relay jumper set to LOW. If the jumper is set to HIGH, the strip has the red light turned on and no motion will make the relay to switch to green.
Testing the PIR sensor separately I get a normal 3.3V on the output channel for 19 seconds when motion is detected.
Can you please tell me what am I doing wrong?