if structure takes too much time

Crap! Forgot the pull down resistors!

Yes i'm a noob :smiley:

Thanks for the help, i'll try it later