Try again what PtrBld suggested with calibrating the PIR Sensor Tuning by turning the knobs so see if you get different results.
Otherwise, this image show you which pins you have connected. If oyou have it set up the way PtrBld suggested, you change the code to 24.