Category Archives: Programming
This sketch is a simple extension to the most-basic analogRead() example.
Instead of printing every single value read, it performs a series of 10000 reads of analog pin 0. Then it prints the minimum and maximum values sampled, as well as the span of values: Delta = Max – Min.
With this approach, the Serial Monitor does not get flooded with data and more time is spent in reading values, than in transferring them over Serial.