I need help with my circuit design for this motion sensor circuit. Independently the components all work fine, but when I put them together the relay never triggers. I suspect it has something to do with everything being connected to the same ground. I tried putting a 1K resistor between the relay and ground and that didn't work either. Can anyone help point me in the right direction here? Thanks.