 
   sensors.begin();
   tempSensorFound = false;
-  if (sensors.getAddress(insideThermometer, 0)) {
+  if (sensors.getAddress(temperatureSensor, 0)) {
     // set the resolution to 9 bit (Each Dallas/Maxim device is capable of several different resolutions)
-    sensors.setResolution(insideThermometer, 9);
+    sensors.setResolution(temperatureSensor, 9);
     tempSensorFound = true;
   }
-  digitalWrite( TEMP_SENSOR_ENABLE, LOW);
+
+//digitalWrite( TEMP_SENSOR_ENABLE, LOW);
 
   batteryCountDown = BATTERY_READ_INTERVAL;
   // Wait for it to be initialised

DallasTemperature sensors(&oneWire);

// arrays to hold device address
DeviceAddress insideThermometer;
boolean tempSensorFound = false;

uint8_t inPin[] = { 9, 11, 12, 13 };

int batteryCountDown = BATTERY_READ_INTERVAL;


  if (!sendCommand("ATSD493E0")) return 2;	// 5 minutes
  //if (!sendCommand("ATSD49E30")) return 2;	// 5 minutes - Wrong!
  //if (!sendCommand("ATSD4E20")) return 2;	// 20 seconds
//  if (!sendCommand("ATSD1388")) return 2;	// 5 seconds
  //if (!sendCommand("ATSD3E8")) return 2;	// 1 seconds
  
  if (!sendCommand("ATSM3")) return 3;
  if (!sendCommand("ATDN")) return 4;
