   digitalWrite(ledPin,HIGH);
   while(capsense.capacitiveSensor(30) < 10000) { };
   digitalWrite(ledPin,LOW);
+}
+
+void checkIr(){
+  boolean irState = digitalRead(irPin);
+  digitalWrite(ledPin, irState);
+  if(irState){
+    onUntilMillis = millis() + irTime;
+  }
 }
 
 void dim1(){

  pinMode(greenPin, OUTPUT); 
  pinMode(bluePin, OUTPUT); 
  pinMode(ledPin, OUTPUT); 

  stripColor(0,0,0);
}

void loop() {
    dimLow(0);
    waitForTouch();
    dim1();


const int ledPin = 13;

const int irPin = 6;

const int irTime = 10000;
unsigned long onUntilMillis;

int lowRed   = 22;
int lowGreen = 8;
int lowBlue  = 0;

int highRed  = 255;
