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

          statePending = true;
          eighty_twenty = true;
        }
        
        

      } 
    }
    else if (atoi(p.id) == atoi(deviceId)) {
      

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

int RECV_PIN = 8;
IRrecv irrecv(RECV_PIN);
