Skip to main content
edited body
Source Link
gre_gor
  • 1.7k
  • 4
  • 18
  • 30

You are reading Serial before you check that there is anything valid to read:

Luku4 = Serial.read();

Luku4 = Serial.read();
while(Serial.available() == 0){}

Try swapping those two lines.

You are reading Serial before you check that there is anything valid to read:

Luku4 = Serial.read();

while(Serial.available() == 0){}

Try swapping those two lines.

You are reading Serial before you check that there is anything valid to read:

Luku4 = Serial.read();
while(Serial.available() == 0){}

Try swapping those two lines.

Source Link
CrossRoads
  • 2.4k
  • 7
  • 9

You are reading Serial before you check that there is anything valid to read:

Luku4 = Serial.read();

while(Serial.available() == 0){}

Try swapping those two lines.