Create sampler.c

To sample the ADC and store the values from the buffer in a .txt file