Lesson goal: Read a voltage from the Arduino (an analog value)

Previous: Buzz a wrong answer | Home | Next: Your work area temperature

This lesson will show you how to read a voltage from one of the analog inputs (A0..A5) on the Arduino.
analogread(pin)
Move the mouse over a dotted box for more information.

Now you try. Read voltages from the outside world!

Type your code here:


See your results here: