You pir sensor may have an open collector output ( check data sheet ) and then need a pull up resistor from its output to the power supply .