Getting this error message that i cant seem to figure out.. anyone?
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); //setup serial communication
}
void loop() {
// put your main code here, to run repeatedly:
float pH;
Serial.println("\nEnter a pH level");
while(Serial.available() <=0);
pH = Serial.parseFloat();
Serial.print("You entered a pH level of ");
Serial.print(pH);
if (pH <= 7)
{
if (pH == 7)
{
Serial.print("\nNeutral");
}
else if (pH > 2)
{
Serial.print("\nAcidic");
}
else (pH < 2);
{
Serial.print("\nVery Acidic");
}
}
}
if (pH > 7)
{
else if (pH > 12)
{
Serial.print("\nVery Alkaline");
else (pH < 12);
{
Serial.print("\nAlkaline");
}
}
}