Arduino code and observation
Exercise 1:
Analog Read Serial: Read a potentiometer, print its state out to the Arduino Serial Monitor
Step 1: Open the built-in example (program), named Analog Read Serial in Basics.
Step 2: Build the circuit shown below:
Arduino
Step 2: Upload the program to the Arduino Board.
Step 3: Open the Serial Monitor and observe the output and understand the analogRead function of the program.
Observation: