Test your understanding of sensors, analog input, and reading values with analogRead()
analogRead()
32-Lesson Course • Semester 1
What is the main job of a sensor in an Arduino project?
Which statement best describes analog input?
Which pin is the correct kind of pin to use with analogRead() for a beginner sensor lesson?
What does analogRead(A0) do?
analogRead(A0)
In this lesson, what range of values does Arduino usually read from an analog sensor?
In the lesson's potentiometer setup, where does the middle pin connect?
Why is the Serial Monitor useful when testing a sensor?
What does this line do?Serial.println(sensorValue);
Serial.println(sensorValue);
Explain what you would expect to happen to the numbers in the Serial Monitor as you slowly turn a potentiometer knob from one end to the other.
Describe a simple Arduino program that reads a sensor. What sensor would you use, what pin would it connect to, and what would the program print or do?
These results have been automatically sent to your instructor.