Arduino Function: Capacitive.capacitiveSensorRaw


capacitiveSensorRaw requires one parameter, samples, and returns a long integer containing the absolute capacitance, in arbitrary units. The samples parameter can be used to increase the returned resolution, at the expense of slower performance. The returned value is not averaged over the number of samples, and the total value is reported. 
capacitiveSensorRaw will return -2 if the capacitance value exceeds the value of CS_Timeout_Millis (in milliseconds). The default value for CS_Timeout_Millis 2000 milliseconds (2 seconds).


long capacitiveSensorRaw(byte samples);


  • samples: byte


long the absolute capacitance

Based on the reference originally written by Arduino Community, and