Expected primary-expression errors

hi everyone . i am fairly new to programming but still struggling a lot. I tried to write the program to control two thermostats and fans depends on temperature. Unfortunately i can’t find the problem in may program. please help…

#include <LiquidCrystal.h>

define temp_sensor_pin1 A0

define temp_sensor_pin2 A3

define ref_pin1 A1

define ref_pin2 A2

#define fan_op_pin1 9
#define red_led 6
#define green_led 7
#define blue_led 8
#define sound_pin1
#define fan_op_pin 9

#define red_led2 13
#define green_led2 10
#define blue_led2 0
#define fan_op_pin2 1
#define sound_pin2
float temperature1;
float temperature2;
int fan_speed1 = 50;
int fan_speed2 = 50;
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup()
{
Serial.begin(9600);
lcd.begin(16, 4);
lcd.clear();
lcd.print(“set1:”);
lcd.begin(16, 6);
lcd.setCursor(0,1);
lcd.print(“cur1:”);
lcd.setCursor(0,4);
lcd.print(“cur2:”);
pinMode(red_led,OUTPUT);
pinMode(green_led,OUTPUT);
pinMode(blue_led,OUTPUT);
pinMode(red_led2,OUTPUT);
pinMode(green_led2,OUTPUT);
pinMode(blue_led2,OUTPUT);
analogWrite(fan_op_pin1, fan_speed1);
analogWrite(fan_op_pin2, fan_speed2);
}

void loop()
{{
int sensor_value1,ref_value1,max_temp_limit1,min_temp_limit1;
sensor_value1 = analogRead(temp_sensor_pin1); // get the sensint sensor_value1,ref_value,max_temp_limit,min_temp_limit;

ref_value1 = analogRead(ref_pin1);
ref_value1 = map(ref_value1, 0, 1023, 0, 100);
max_temp_limit1 = ref_value1+5;
min_temp_limit1 = ref_value1-5;
temperature1= (5*sensor_value1)/10.31;
Serial.print(“set1: “);
Serial.println(ref_value1);
Serial.print(“current1: “);
Serial.println(temperature1);
lcd.setCursor(5,0);
lcd.print(ref_value1);
lcd.print(”*C”);
lcd.setCursor(5,1); // set cursor to 2nd line 1st column
lcd.print(temperature1); // print temperature
lcd.print(”*C”);
if(temperature1 > max_temp_limit1)

{
int sensor_value2,ref_value2,max_temp_limit2,min_temp_limit2;
sensor_value2 = analogRead(temp_sensor_pin2); // get the sensint sensor_value1,ref_value,max_temp_limit,min_temp_limit;

ref_value2 = analogRead(ref_pin2);
ref_value2 = map(ref_value2, 0, 1023, 0, 100);
max_temp_limit2 = ref_value2+5;
min_temp_limit2 = ref_value2-5;
temperature2= (5*sensor_value2)/10.31;
Serial.print(“set2: “);
Serial.println(ref_value2);
Serial.print(“current2: “);
Serial.println(temperature2);
lcd.setCursor(5,0);
lcd.print(ref_value2);
lcd.print(”*C”);
lcd.setCursor(5,1); // set cursor to 2nd line 1st column
lcd.print(temperature2); // print temperature
lcd.print(”*C”);
if(temperature2 > max_temp_limit2)
{
lcd.setCursor(0,2);
lcd.print(“overTem1”);
lcd.setCursor(0,3);
lcd.print(“fan speed incr”);
if(fan_speed1<150) fan_speed1 += 20;
analogWrite(fan_op_pin1, fan_speed1);
digitalWrite(red_led,HIGH);
digitalWrite(green_led,LOW);
digitalWrite(blue_led,LOW);
tone(sound_pin1,1245,1000);
}
lcd.setCursor(0,5);
lcd.print(“overTem2”);
lcd.setCursor(0,5);
lcd.print(“fan speed incr”);
if(fan_speed2<150) fan_speed2 += 20;
analogWrite(fan_op_pin2, fan_speed2);
digitalWrite(red_led2,HIGH);
digitalWrite(green_led2,LOW);
digitalWrite(blue_led2,LOW);
tone(sound_pin2,1245,1000);

else if(temperature1 < min_temp_limit1)

{
lcd.setCursor(0,2);
lcd.print("tempDown ");
lcd.setCursor(0,3);
lcd.print(“fan speed decr”);
if(fan_speed1 > 50) fan_speed1-=20;
analogWrite(fan_op_pin1, fan_speed1);
digitalWrite(red_led,LOW);
digitalWrite(green_led,LOW);
digitalWrite(blue_led,HIGH);
tone(sound_pin1,1245,1000);
}

else if(temperature2 < min_temp_limit2)
{
lcd.setCursor(0,5);
lcd.print("temp2Down ");
lcd.setCursor(0,6);
lcd.print(“fan speed decr”);
if(fan_speed2 > 50) fan_speed2-=20;
analogWrite(fan_op_pin2, fan_speed2);
digitalWrite(red_led2,LOW);
digitalWrite(green_led2,LOW);
digitalWrite(blue_led2,HIGH);
tone(sound_pin2,1800,1000);

}
else if((temperature1<max_temp_limit1) && (temperature1>min_temp_limit1))

{
lcd.setCursor(0,2);
lcd.print("temp1: ");
lcd.setCursor(0,3);
lcd.print("within limit ");
digitalWrite(red_led,LOW);
digitalWrite(green_led,HIGH);
digitalWrite(blue_led,LOW);
}
else if((temperature2<max_temp_limit2) && (temperature2>min_temp_limit2))
{
lcd.setCursor(0,2);
lcd.print("temp2: ");
lcd.setCursor(0,3);
lcd.print("within limit ");
digitalWrite(red_led2,LOW);
digitalWrite(green_led2,HIGH);
digitalWrite(blue_led2,LOW);
}
delay(1000); // 1 sec delay
}
}

is giving me :
In function ‘void loop()’:
98:22: error: expected primary-expression before ‘,’ token
109:24: error: expected primary-expression before ‘,’ token
112:5: error: expected ‘}’ before ‘else’
124:24: error: expected primary-expression before ‘,’ token
127:26: error: ‘min_temp_limit2’ was not declared in this scope
138:24: error: expected primary-expression before ‘,’ token
152:26: error: ‘max_temp_limit2’ was not declared in this scope

Topic split from an old one

void loop()
{{

Why two { ?

sound_pin2 is defined as... nothing. The compiler wants something.

That is another good reason to use "const byte sound_pin2 = ;" instead of "#define sound_pin2". At least you get an error where the mistake was made.

Same for sound_pin1.