Solving Approach:

How do you plan to solve it?

This is regular ADC code. By using Serial.println(), the values plotted on serial plotter.

Code

int pot = A0;

void setup(){
  pinMode(pot, INPUT);
  Serial.begin(115200);
}

void loop(){
  float val = analogRead(pot);
  Serial.println(val);
  delay(500);
} 

Output

Video

Add video of output (know more)

Photo of Output

 

 

 

 

 

 

 

 

Upvote
Downvote

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!