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

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

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