kenwood120s:
Sage advice.@OP your code looks in fact like adafruit's from here: does it work properly in its virgin state with your actual sensor?
yes, the code works fine in its original state. the problem rises when I start adding the code for servo motor. the servo does not stop when the PIR is at LOW state. it keeps moving.