A sensor type for MOT2002 has been added to the latest release of the Phidget22 library that will automatically filter incoming data and provide a 1 if there is motion or 0 if there is not. It is actually 3 sensor types (MOT2002_LOW, MED and HIGH), corresponding to low, medium and high sensitivity. ...