Input's/Output's not registering, Simple problem with code?

I cant see anything wrong with the code at a very quick glance, except maybe to turn on a pullup or pull down on the input?

You could try the inbuilt LED its on D7, that eliminates one variable.

There is a good little trick to opening up the serial port here, 2nd post!