+#include <CapacitiveSensor.h>
+
 const int gatePin = 11;
 const int tempPin = A0;
 const int lightPin = A1;
 int mode, tempVal, outputValue;
+CapacitiveSensor capSensor = CapacitiveSensor(4, 2);
 
 void setup() {
   Serial.begin(9600);

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


  Serial.println(tempVal);
}

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

