Reading Mixed Serial If/Else ? ?

Delta_G:
Have you looked at: Serial Input Basics Lots of examples in there.

Well that's a shame. What we do here is help you fix the code you wrote. Since you don't have any now, what you need to do is write one and tell us what the difference is between what you expect it to do and what it does and we will help you fix it.

I have looked over that several times before and they don't work in this situation. Example 5 is the only one that could possibly have been of any use but it expects the numbers and letters to come in a preset order, there is no way to alter start and end markers from the shield or to separate the values for parsing the response.

I'm not the 1st person to have this issue, you will find just about EVERY sketch written for any board like this uses the same format and this isn't how it should be done; if they intended to ignore the response from each command they would have simply omitted a reply with these commands.

 Serial.print("Reset elm");
  elm327.println("ATZ\r");
  delay(1000);
 
 elm327.println("ATZ\r");
  delay(1000);
 
 elm327.println("ATI\r");
  Serial.print("ATI");
  delay(1000);
  
  Serial.flush();
  elm327.flush();
//Wait for a little while before sending the reset command to the OBD-II-UART
  delay(100);
  //Reset the OBD-II-UART
  Serial1.print("ATI\r");
  //Wait for a bit before starting to send commands after the reset.
  delay(100);
  Serial1.print("AT H1\r");
  //Wait for a bit before starting to send commands after the reset.
  delay(100);
  Serial1.print("AT AL\r");
  //Wait for a bit before starting to send commands after the reset.
  delay(100);
  // turn echo off
  Serial1.print("ATE0\r");