error: 'XX' was not declared in this scope

Hi,

in a sketch I have defined some variables at the sketch beginning, i.e.

int temperaturePin = 0;
int lowThresold = 24;
int lowThresoldPin = 9;
byte lowThresoldLed = 4;

Then in loop I do:

  if (temperature < lowThresold) {
    Serial.println("Temperature below thresold");
    setLeds(lowThresoldLed);
  }

After the end of loop there is setLeds:

void setLeds(byte ledMask){
  digitalWrite(lowThresoldPin, (ledMask ^ lowThresoldLED));   // set the LED on/off
}

When verifying the code, I have the error:

error: ‘lowThresoldLED’ was not declared in this scope

The question is: why??? lowThresoldLED is defined in the same place of lowThresoldPin, and for this the compiler does not complain!!!

Thanks in advance

Case matters. lowThresoldLED is not lowThresoldLed.

(deleted)

It might also be a good idea to spell it correctly.

dxw00d: Case matters. lowThresoldLED is not lowThresoldLed.

You're right, and I am a chump!!!!

Thanks to you and to the other folks who have answered.