I’m doing a digitalRead on the Arduino pin but it’s jumping back and forth between 0 and 1, even when the motion detector is completely shielded from any possible motion. Any advice is appreciated. Thanks.
The alarm pin (black) is an open collector meaning you will need a pull up resistor on the alarm pin. The open drain setup allows multiple motion sensors to be connected on a single input pin. If any of the motion sensors go off, the input pin will be pulled low.
Clearly you’ve got the pin connected to something, but would you mind posting your code? Perhaps you haven’t set the DDRx properly? (not sure how Arduino manages DDR, but I can look it up)
Try disconnecting the motion sensor entirely and just having the 4.7k pullup on that pin — it should read constantly HIGH (1) then, of course. This should help you figure out whether the problem is with the sensor or the Arduino.