Simple sensor

Did you lose the semicolons?

then it shall work, only please change your wiring to something like the button tutorial

http://arduino.cc/it/Tutorial/Button

:slight_smile: