pinMode(pin, pinMode) // Sets the pin to the mode defined.
digitalRead(pin); // Reads the value from a specified digital pin,
ParamterDetailspinmodeShould be set to INPUT or INPUT_PULLUP
If the input pin is not pulled LOW or HIGH, the value will float. That is, it won't be cle...