In reply #81 you have two consecutive Serial.read, with dependent conditions. Are you certain you have data to read?