Help ! 'INT_MAX' was not declared in this scope

Hi
While verifying my sketch, i get the above error message, i have scoured the site for info and i cannot find any help, can anyone look through my sketch to see if i have missed anything obvious.

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(9,8,5,4,3,2);

const byte TempSensorPin = 0;
const byte fanPin =13;
const float CELSIUS_FACTOR = 0.54;

void setup()
{
pinMode (fanPin, OUTPUT);
lcd.begin (16,2);
}

void loop()
{
int minTemp = INT_MAX + 1;
for (int i = 0; i <6; i++)
{
int tempSensorVal = analogueRead (tempSensorPin) * CELSIUS_FACTOR;

if(tempSensoVal<minTemp){
minTemp=tempSensorVal;
}

delay(100);

}

lcd.setCurser (0,1);
if(minTemp>35)

{

lcd.write("Fan Connected");
digitalWrite (fanPin, HIGH);

}

else

{

lcd.write("Fan Off");
digitalWrite(fanPin, LOW);

}
delay (1000);

}

lcd.clear();
lcd.print("Temperature");
lcd.print(minTemp);
lcd.write(B11011111);
lcd.print ("C");

delay (2000);

}

Hey

Firstly you should use code tags when posting (its the # in the tool bar of the posting page.

int minTemp = INT_MAX + 1;
  for (int i = 0; i <6; i++)

The problem is you're referencing a variable "INT_MAX" which has not been defined in your app anywhere.

It's defined in limits.h, but what do you imagine adding one to it does?