Capacitive sensor switch
In this line:

readings[index] =  cs_7_6.capacitiveSensor(30);


...you are assigning an "int" the value from a method of type "long".

Likely you will want to change all your types used to track the capacitance value, including the type of your "capReading" method, to "long".