Capacitance measurement - analog sampling rate

Have now got things going and have referred some issues to writer of the sketch.