serial input to arduino

@zoomkat
You really need to fix this sample code.

        while (Serial.available()) {
        delay(10);  
          if (Serial.available() >0) {

The if test will not be reached unless the while test concluded that there was serial data. Do you suppose that sometime while the Arduino was twiddling it's thumbs the data went away?