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);
}