Simply connect it to a Stem shield and program it, when anyone moves in its detecting range, the sensor outputs HIGH on its SIG pin. The detecting range and response speed can be adjusted by 2 potentiometers soldered on its circuit board. (Potentiometers not included)

The response speed is from 0.3s - 25s, and max 6 meters of detecting range.