Code problem with LED

Sorry, my PIR sensor is connected to PIN 14 (Analog 0) on my wave shield.

So, it is not an "input" connected to that pin. More meaningful names make your programming life easier.