capacitive sensors / slow data update in serial monitor

Hello ,

i i want to read data from 8 capacitive sensor on 8 pins , i am using the capacitivesensor library .

with 1 sensor in sketch the lines of data come out very fast in the serial monitor , but when i start adding sensors in arduino code , then the lines of data come out more slowly ...with 8 sensors in the code ( and only 2 sensors connected at the moment ) about every 8 seconds i get a new line of sensor data in the serial monitor ...

for 7 of the sensors i need to know if a sensor is active or not , ON/OFF , and for 1 capacitive sensor i need to read the data fluctuation from low to high

any help is welcome ,

cheers,

*LL

capacitive_cycling-8.ino (1.73 KB)

Read the how to use this forum-please read sticky to see how to, properly, post code.

#include <CapacitiveSensor.h>
CapacitiveSensor   cs_4_2 = CapacitiveSensor(4,2);       
CapacitiveSensor   cs_4_6 = CapacitiveSensor(4,6);  
CapacitiveSensor   cs_4_8 = CapacitiveSensor(4,8);
CapacitiveSensor   cs_4_9 = CapacitiveSensor(4,9);       
CapacitiveSensor   cs_4_10 = CapacitiveSensor(4,10);  
CapacitiveSensor   cs_4_11 = CapacitiveSensor(4,11);
CapacitiveSensor   cs_4_12 = CapacitiveSensor(4,12);  
CapacitiveSensor   cs_4_13 = CapacitiveSensor(4,13);
void setup()                    
{Serial.begin(57600);
}
void loop()                    
{
    long start = millis();
    long total1 =  cs_4_2.capacitiveSensor(30);
    long total2 =  cs_4_6.capacitiveSensor(30);
    long total3 =  cs_4_8.capacitiveSensor(30);
    long total4 =  cs_4_9.capacitiveSensor(30);
    long total5 =  cs_4_10.capacitiveSensor(30);
    long total6 =  cs_4_11.capacitiveSensor(30);
    long total7 =  cs_4_12.capacitiveSensor(30);
    long total8 =  cs_4_13.capacitiveSensor(30);
   Serial.print(total1);                  // print sensor output 1
    Serial.print(" ");
    Serial.print(total2);                  // print sensor output 2
    Serial.print(" ");
    Serial.print(total3);                  // print sensor output 3
    Serial.print(" ");
    Serial.print(total4);                  // print sensor output 4
    Serial.print(" ");
    Serial.print(total5);                  // print sensor output 5
    Serial.print(" ");
    Serial.print(total6);                  // print sensor output 6
    Serial.print(" ");
    Serial.print(total7);                  // print sensor output 7
    Serial.print(" ");
    Serial.println(total8);                // print sensor output 8
   delay(10);                             // arbitrary delay to limit data to serial port 
}

problem is fixed ... i just needed to connect the 8 sensors