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

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


    client.send(lightCommand);
    
    updateSmartValues((hour()*60) + minute(),analogRead(ldrPin));
  }

  // Enable the receiver again
