/*
Receive and Print on Serial Plotter
*/
String a;
// the setup function runs once when you press reset or power the board
void setup() {
// initialize serial port with baud of 115200
Serial.begin(9600);
}
// the loop function runs over and over again forever
void loop() {
// send data only when you receive data:
while(Serial.available()) {
a = Serial.readString();// read the incoming data as string
Serial.println(a);
}
}