    delay(1000);
    clearDisplayI2C();
    //ct = 5;
+   pinMode(resetpin, INPUT);
+   //attachInterrupt(digitalPinToInterrupt(resetpin), resetCapSense, FALLING);
    cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);     // turn off autocalibrate on channel 1 - just as an example
    Serial.begin(115200);
 }
 
 void loop()                    
 {
+    if(!digitalRead(resetpin)){
+      cs_4_2.reset_CS_AutoCal();
+    }
     /*while(ct<5)
     {
         ct = 6;

//unsigned int counter = 9900;  // This variable will count up to 65k
char tempString[4];  // Will be used with sprintf to create strings
//int ct;

void setup()                    
{

    // This will output the tempString to the s7s
    s7sSendStringI2C(tempString);
    delay(100);                             // arbitrary delay to limit data to serial port 
}

void resetCapSense(){
  cs_4_2.reset_CS_AutoCal();
  Serial.println("moo");
}

void s7sSendStringI2C(String toSend)
