Have you tried printing the value that you receive ?
Have you considered using Serial.parseInt() instead of reading a String and converting it to an int ?
Have you tried printing the value that you receive ?
Have you considered using Serial.parseInt() instead of reading a String and converting it to an int ?