 //  }
   
   
+}
+
+void waitForTouch(){
+  while(capsense.capacitiveSensor(30) < 3000) { };
 }
 
 void dim1(){


const int redPin   = 9;
const int greenPin = 10;

void loop() {

    dimLow(0);
    

    waitForTouch();
    dim1();
    waitForTouch();
    dim2();
    waitForTouch();
    dim3();
    waitForTouch();
    dim4();

//  while (Serial.available() > 0){
//    char c = Serial.read();
