digitalRead(2) arduino code example
Example: arduino digitalread
digitalRead(pin number);
// can also be used to debug with
Serial.println(digialRead(pin number));
digitalRead(pin number);
// can also be used to debug with
Serial.println(digialRead(pin number));