Arduino Relay for Greenhouse Temperature Controller

Our code keeps saying the IF statement isn’t being recognized or its asking for a Token even though the code has a Token in it. Can someone please let me know what I’m doing wrong. Thanks, Z

int relayPin = 6;
int thermostatPin = 7;
int ledPinG = 2;
int ledPinR = 3;
#define thermostat 7
String readString;

int highTemp = 85;
int goodTemp = 80;

void setup() {
pinMode (relayPin, OUTPUT);
pinMode (thermostatPin, INPUT);
pinMode (ledPinG, OUTPUT);
pinMode (ledPinR, OUTPUT);

}

void loop() {

int reading = analogRead(thermostat);
float voltage = reading * 5;
voltage /= 1024.0;
float temperatureC = (voltage - 0.5) * 100 ;
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0;

if( (85<= highTemp);
digitalWrite(relayPin, HIGH);
digitalWrite(ledPinR, HIGH);
digitalWrite(ledPinG, LOW);

else if() (temperatureF < highTemp && TempatureF> = goodTemp)
digitalWrite(relayPin, LOW);
digitalWrite(ledPinG, HIGH);
digitalWrite(ledPinR, LOW);

}

   if( (85<= highTemp);

Lose the semicolon.

Maybe add some braces { }

In future, post the exact error message(s)

AND USE CODE TAGS

on digitalwrite(relalaypin, high);

it saysexpected ')' before ';' token

Yeah you’re really going to have to start using cut and paste, and not what you think you read.

None of that appeared in the code you posted.