 
     client.send(lightCommand);
     
-    updateSmartValues((hours()*60) + minutes(),analogRead(ldrPin));
+    updateSmartValues((hour()*60) + minute(),analogRead(ldrPin));
   }
 
   // Enable the receiver again

    }

    // 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);
    }
