void setup() {
Serial.begin(115200); // Initialize serial communication
Serial.println("Ready to receive...");
}
void loop() {
if (Serial.available() > 0) { // Check if data is available
String receivedText = Serial.readString(); // Read the text
Serial.print("You sent: "); // Print message
Serial.println(receivedText); // Echo back what was received
}
}