Error in Serial.available()

Thank for the clarification on the serial monitor. That makes sense. I'll switch to something else to test the code.