Code problem with LED

For some reason the LED is still on all the time.

i'm really new to coding and do I need to add something to this code:

pirState= digitalRead(inputPin);
digitalWrite(ledPin, pirState);

I know you said before but I'm confused. Sorry if I sound like a idiot.

Thanks for all the help.