with the following sketch I should be able to read and store what is entered in the Serial monitor
void setup() {
Serial.begin(115200);
while(!Serial);
}
void loop() {
Serial.println("Enter Zone Number: ");
while(!Serial.available()){
}
int zone = Serial.parseInt();
Serial.println(zone);
}
if I enter "1" I would except this:
Enter Zone Number:
1
but unfortunately I have this:
Enter Zone Number:
1
Enter Zone Number:
0
What am I missing?