Unusual behaivor with PIR sensing

You can attach the code to the post. Use the full editor that comes up when you hit "preview".