I dont know why its showing this error. Can anyone help please.
void auto LDR(){
int rate = 2;
int T = 1000/rate;
const int ESPERA = 0; MEDIDA = 1;
static state = espera
static unsigned long timeStamp = millis();
unsigned long t;
const float R2 = 18;
const float C1 = 17;
const float C2 = 0.3;
float Volt, RLDR;
switch(state){
case ESPERA:
t = millis();
if (t-timeStamp >= T){
timeStamp = millis();
state = MEDIDA;
}
break;
case MEDIDA:
Volt = analogRead(pinLDR)/1023.05.0;
RLDR = R2(5.0/Volt-1);
LUM = pow(C1/RLDR,1.0/C2);
state = ESPERA;
break;
}//terminou switch
}// terminou funcao