5. Arduino GPIO Voltage and Current

Question.6

Catania made the following circuit. Which of the following options is correct? 

const int readPin = 4;

void setup() {
  pinMode(readPin, INPUT);
}

void loop() {
  bool readState = digitalRead(readPin);
}

Select Answer