Posted on RPI forum by killagreg

Another approach to motion detection