7. Arduino GPIO Practices and Cautions

Question.7

What will be printed on the serial monitor? 

Note:- nothing is connected to Arduino

void setup() {
}

void loop() {
  int buttonState = digitalRead(2);
 Serial.println(buttonState);
}

Select Answer