Assigning Multiple Numbers From Serial to Float

Robin2:
Start by trying the second example in Serial Input Basics on its own with no changes at all. That should allow you to enter the numbers that you want and have them displayed.

Thank you for the response! I've tinkered with it off and on for the past week, but haven't quite figured up a solution. I managed to get the relevant codes in that link working, but I haven't managed to apply them to my project. Between that thread and a few others I sifted through, I devised the code below. It seems to successfully execute all the way through, but when it prints "state" at the end, it shows a symbol depicting an unrecognized character (�). All of the variables are int except state, which is char. Do you happen to have any insight?

if (state == 'b'){                
    Serial.println("Enter the low-end target temperature.");
    state = 'z';    
    counter = 2;
    Serial.println("Counter.");
    while (counter = 2){
      trigger = Serial.read();
      if (isDigit(trigger)) break;
    }
      if (counter == 2){
        valueHolder[3] = Serial.read();
        state += valueHolder[3];
        counter -= 1;
        Serial.println("First indicator.");  //Indicates the code has successfully executed previous steps.
      }
      if (counter == 1){
        valueHolder[3] = Serial.read();
        state += valueHolder[3];
        counter -= 1;
        Serial.println("Second indicator.");  //Indicates the code has successfully executed previous steps.
        Serial.println(state);
      }
    }