Error ; before teptimer

//Temperature Alarm
float sinVal;
int toneVal;
unsigned long tepTimer;
void setup(){
pinMode(8,OUTPUT); //config of pin buzzer
Serial.begin(9600); //config baud rate to 9600 bps
}
void loop(){
  int val;
  double data;
  val=analogRead(0);
  data=(double) val*(5/10.24);
  if(data>27){ //if temp higher than 27, buzzer will go off
    for(int x=0;x<180;x++){ 
      sinVal= (sin(x*(3.1412/180))); //convert sin function to radian
      toneVal= (200+(int(sinVal*1000)));
      tone(8,toneVal); //convert buzzer to pin 8
      delay(2);
    }
  } else { //if tempreture is lower than 27 turn off buzzer
    noTone(8); //turn off buzzer
  }
  if(millis()- tepTimer >50
  tepTimer = millis();
  serial.print("temperature:");
  Serial.print(data)
  Serial.println("C");
}
}

it is highlighting the tepTimer = millis(); line, I can't figure out where I am missing a ;

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

missing closing bracket

and

 Serial.print(data);

Thank you!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.