   LOG_DEBUG2("hp:");
   LOG_DEBUGLN2(humLimitPotValue);
 
+  float tempCaseTemp = sensors.getTempCByIndex(0);
+  float tempOutsTemp = sensors.getTempCByIndex(1);
+  if (isnan(tempCaseTemp) || isnan(tempOutsTemp)) {
+    LOG_DEBUGLN("Could not get dallas temperature");
+  } else {
+    tempCase = tempCaseTemp;
+    tempOutside = tempOutsTemp;
+  }
+  LOG_DEBUG("to:");
+  LOG_DEBUGLN(tempOutsTemp);
+  LOG_DEBUG("tc:");
+  LOG_DEBUGLN(tempCaseTemp);
+
+  lightSensValue = analogRead(LIGHTSENS_PIN);
+  LOG_DEBUG("LDR:");
+  LOG_DEBUGLN(lightSensValue);
+
   buttonState = digitalRead(BTNPIN); // Check for button press
 }
 

  if ((temp - lastConnectionTime) > updateThingSpeakInterval) {
    updateValues();
    lastConnectionTime = millis();
  }

  delay(1000);
}


#define TEMP_POT_PIN     A0
#define HUM_POT_PIN      A1
#define MOIST_SENS1_PIN  A2
#define AM_USES1         A4
#define AM_USES2         A5
#define LIGHTSENS_PIN    A6

//digital pin assignments
#define LCDPIN1          2
#define LCDPIN2          3
#define LCDPIN3          4
#define BTNPIN           5
#define DALLAS_ONE_WIRE  6
#define SERVOPIN         10
#define SSERIALTX        11  //to RX on ESP-05
#define SSERIALRX        12  //to TX on ESP-05
#define ESPRESETPIN      13

// The baud rate of the serial interface
#define SERIAL_BAUD  9600
