// định nghĩa chân kết nối ADC
const int potPin = 34;
// giá trị đo được
int potValue = 0;
void setup() {
Serial.begin(115200);
delay(1000);
}
void loop() {
// Đọc giá trị analog
potValue = analogRead(potPin);
Serial.println(potValue);
delay(100);
}