title: Arduino Serial.ParseInt() Alternative
body: <p>I need to read in exactly 1 three digit integer (example: 134) from the serial monitor.  I am currently using Serial.parseInt() and getting the behavior I want, but it is very slow.  What would be a faster alternative to this method?</p>
  
  <p>Edit: All parts of the integer must be read in at the same time, so using Serial.available() and Serial.read() is not an option.</p>
  
  <p>Edit2: I attempted using</p>
  
  <pre><code>while (Serial.available()) {
    int val = Serial.read();
    int val2 = Serial.read();
    int val3 = Serial.read();
    Serial.print("Val1: ");
    Serial.println(val);
    Serial.print("Val2: ");
    Serial.println(val2);
    Serial.print("Val3: ");
    Serial.println(val3);
  }
  </code></pre>
  
  <p>In the loop portion, but got the output</p>
  
  <pre><code>Val1: 97
  Val2: -1
  Val3: -1
  Val1: 98
  Val2: -1
  Val3: -1
  Val1: 99
  Val2: -1
  Val3: -1
  </code></pre>
  
  <p>when I typed abc into the serial monitor.</p>