MP3 Shield coding PIR sensor

That is
just about
the crappiest
indenting
I've seen
this month.

Use Tools + Auto Format to fix that. Delete code that is irrelevant, like the call to randomSeed() and the useless comment about getting a random number (you don't). Post your code again.