 void smartCheck() {
   unsigned long curTime = millis();
   if (curTime > (lastCheck + interval) || lastCheck < curTime) {
-    lastCheck = curTime
+    lastCheck = curTime;
     //Serial.println("Check");
     short currentLightValue = analogRead(ldrPin);
     if (currentLightValue <= lightThreshold) {

    }

    // Light 2
    if (strstr(data, "0")) {
      lightNumber = 1;
    }

    // Light 3
    if (strstr(data, "0")) {
      lightNumber = 2;
    }

    // Light 4
    if (strstr(data, "0")) {
      lightNumber = 3;
    }


    // Turn on the light
    if (strstr(data, "on")) {
      transmitter.sendUnit(lightNumber, true);
      updateSmartValues((hour()*60) + minute(),analogRead(ldrPin));
    } else { // Turn off
      transmitter.sendUnit(lightNumber, false);
    }
