   // Initialize the library for temperature sensors
   sensors.begin();
   delay(100);
+  
   //read values, especially potentiometer values, incase of restart
   readValues();
   alertLevel = tempLimitPotValue;


void setup() {
  SERIAL_BEGIN(SERIAL_BAUD);
  servo1.attach(SERVOPIN); // Attaches the servo on pin 14 to the servo1 object
  servo1.write(180);  // Put servo1 at home position
  delay(2000);
  servo1.detach();


unsigned long lastConnectionTime = 0;
const unsigned long updateThingSpeakInterval = 600000; //send values to thingspeak every 10 minutes

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(DALLAS_ONE_WIRE);

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);

//initialize the AM2320 library 
AM2320 th;

// Initialize the library with the numbers of the interface pins
