int val = 0; void setup() { Serial1.begin(9600); } void loop() { val = Serial1.read(); if (-1 != val) { if ('A' == val || 'a' == val) { Serial1.println("Hello from Arduino!"); } } } The above code downloaded to perform after Arduino Arduino will come from the PC has been waiting for the order