void setup() { Serial.begin(115200); // put your setup code here, to run once: } void loop() { if (Serial.available()) { String pythonmessage = Serial.readString(); Serial.println(pythonmessage); } // put your main code here, to run repeatedly: }