24. ADC Programming- Arduino

Question.5

What will be printed on the Serial Monitor when the following code is executed?

void setup() {
  Serial.begin(9600);
}

void loop() {
  int sensorValue = analogRead(A0);
  float voltage_read = (sensorValue * 5) / 1023;
  Serial.println(voltage_read);
  while(1);
}

 


 

Select Answer