   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
 }
 


void readValues()
{
  if (true == read_from_am2320()) {
    if (isnan(th.h) || isnan(th.t)) {
      LOG_DEBUGLN("Invalid values from AM2320");

//wifi esp8266
SoftwareSerial espSerial(SSERIALRX, SSERIALTX); // RX, TX

#define BUFFER_SIZE 145
char buffer[BUFFER_SIZE];

#define WIFI_APN "WLANAPN1"
