   Serial.println(tempVal);
 }
 
+void readTouch() {
+  tempVal = capSensor.capacitiveSensor(30);
+  Serial.print("Cap value: ");
+  Serial.println(tempVal);
+}
+

const int gatePin = 11;
const int tempPin = A0;
const int lightPin = A1;
int mode, tempVal, outputValue;

void setup() {
  Serial.begin(9600);

  readTemp();
  delay(10);
  readLight();
  delay(10);
  readTouch();
  delay(500);
}

