const int touch_pin_A5 = A5; const int touch_pin_A6 = A6; const int threshold = 1000; void setup(void) { Serial.begin(115200); } void loop(void) { int value_A5 = analogRead(touch_pin_A5); int value_A6 = analogRead(touch_pin_A6); if (value_A5 > threshold) { Serial.println("A"); } if (value_A6 > threshold) { Serial.println("B"); } delay(1000); }