Serial read_problem

"Serial" has a method ".parseInt()" for when you are expecting a multi-digit number:

void loop()
{
  if (Serial.available())  // means "if Serial.available() is not equal to zero"
  {
    int inNumber = Serial.parseInt();
    if (inNumber == 30)
    {
      Serial.print("Hello");
    }
  }
}