String s="";
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("Serial Monitor is Ready");
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()>0 ){
char c=Serial.read();
s=s+c;
if (c=='\n'){
Serial.print(s);
s="";
}
}
}