[Free][Windows only] UE4Duino 2 - Arduino (COM port) communication

Hello, I try a very simple example but no success: (Arduino and ue4 communication is tested and works ok)

I want to press the Keyboard Z in Unreal - then it will turn the built-in Bulb of Arduino On. here is my code, any advice? thanks

Arduino code:


long mydata = 0;

void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);

}

void loop() {

while (Serial.available() == 0) {}
mydata = Serial.parseInt();
if (mydata==1) {

digitalWrite(LED_BUILTIN, HIGH); } // turn the LED on (HIGH is the voltage level)
// wait for a second
}


UE4 Code :