How do you plan to solve it?
Set the AnalogPin to A0
Read Value form the analog pin
Print on the serial plotter
Sampling Delay
How to Use the Serial Plotter
/*Paste your code here*/
/*
Read ADC value from analog pin and plot on Serial Plotter
*/
const int analogPin = A0; // Analog input pin
void setup() {
Serial.begin(9600); // Start serial communication
}
void loop() {
int adcValue = analogRead(analogPin); // Read ADC (0–1023 for 10‑bit ADC)
Serial.println(adcValue); // Send value to Serial Plotter
delay(10); // Sampling delay (~100 samples per second)
}
Add video of output (know more)
Add a photo of your hardware showing the output.
