// ##############################################################
// Potentiometer Interface #
// ##############################################################
//
// Potentiometer with Arduino Uno – Analog Input Control (Hardware & Simulation)
//
// Check out the link for Code explanation and Hardware details
// Link:
// http://tech.arunkumarn.in/blogs/arduino-uno/potentiometer-with-arduino-uno-analog-input-control-hardware-and-wokwi-simulation/
//
//
#define POT_PIN A0
void setup() {
Serial.begin(9600);
}
void loop() {
int potValue = analogRead(POT_PIN);
Serial.print("Potentiometer Value: ");
Serial.println(potValue);
delay(500);
}