Minor syntactical corrections
We need to initialize inputs with a digitalWrite(PIN, HIGH)