Using Ultrasonic Range Finder SRF02 as Motion Detector

stupid mistake from myself...
hope now it's fine