         //the rest => turn off led
         if(atoi(p.id) == atoi(deviceId)) {
           digitalWrite(ledStatePin, HIGH);  
+          //turn of target led if selected correctly
+          digitalWrite(ledTargetPin, LOW);  
         } else {
           digitalWrite(ledStatePin, LOW);  
         }

int ledStatePin = 13;
int ledSignalPin = 11;
int controlledPin = 12;

int RECV_PIN = 8;
IRrecv irrecv(RECV_PIN);

        laptopBridging(p);
      } else if(strcmp(deviceId, deviceLamp) == 0) {
        lampClient(p);

      }
    }
  }
