The C code used with the Arduino for data capture along with the MATLAB code used for data processing can be found in the files below.