I am working on a project which has a capacitive touch sensor. I want to measure the force with which I hit the sensor by finding the rate at which the capacitance changes. Is there any way to sample the capacitance value it reads every few microseconds and log it in an array? Is there any other way to find the rate of change of capacitance so that a harder hit indicates a steep slope compared to a softer hit?