please,,,
i need help to fix the error compiling this code ;
#include <LiquidCrystal.h>
LiquidCrystal lcd(12,10,5,4,3,2);
#define PIN_SET 8
#define PIN_DEC 1
#define PIN_INC 0
int buttonState = 0; // current state of the button
int lastButtonState = 0; // previous state of the button
#define motorpin 11
#define heaterpin 9
int startbutton=6;
int stopbutton=7;
unsigned long Temp = 0;
unsigned long Speed = 0;
int Sensorpin = A0;
unsigned long tempsensor=0 ;
void setup() {
pinMode(motorpin, OUTPUT);
pinMode(heaterpin,OUTPUT);
pinMode(startbutton,INPUT_PULLUP);
pinMode(stopbutton,INPUT_PULLUP);
pinMode(PIN_INC, INPUT_PULLUP);
pinMode(PIN_DEC, INPUT_PULLUP);
pinMode(PIN_SET, INPUT_PULLUP);
lcd.begin(16,2 );
lcd.setCursor(0,0);
lcd.print(" Kemetch Sealer ");
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Speed:");
lcd.setCursor(10,0);
lcd.print("%");
lcd.setCursor(0,1);
lcd.print("TEMP:");
lcd.setCursor(9,1);
lcd.print("C");
}
void loop() {
buttonState = digitalRead(PIN_SET); // read digital pin 2
if (buttonState != lastButtonState){
//*****************************************************************//
if(buttonState=HIGH){
if(PIN_INC==HIGH && PIN_DEC==LOW){
if(Speed < 10){
Speed ++;
delay(100);
lcd.setCursor(7,0);
lcd.print(Speed);
}
if(PIN_INC==LOW && PIN_DEC==HIGH){
if(Speed >= 0){
Speed --;
lcd.setCursor(7,0);
lcd.print(Speed);
delay(100); }}}
}
//*****************************************************************//
if(buttonState=LOW){
if(PIN_INC==HIGH && PIN_DEC==LOW){
if(Temp < 400){
Temp ++;
delay(100);
lcd.setCursor(6,1);
lcd.print(Temp);
}
if(PIN_INC==LOW && PIN_DEC==HIGH){
if(Temp >= 0){
Temp --;
delay(100);
lcd.setCursor(6,1);
lcd.print(Temp);
}
}}
}}}
tempsensor=analogRead(A0)
unsigned long tempvalue = tempsensor*0.48828125;
if(Temp>tempvalue){
if((digitalRead(startbutton)==HIGH)&&(digitalRead( stopbutton)==LOW))
{
analogWrite(motorpin,(Speed*25.5));
digitalWrite(heaterpin,HIGH);
}
if((digitalRead(startbutton)==LOW)&&(digitalRead( stopbutton)==HIGH))
{
analogWrite(motorpin,LOW);
digitalWrite(heaterpin,LOW);
}
}
}