How to find maximums or peaks of sound

TeresaH:
how did you decide these values?

Each sample takes about 100usec.
500 samples will capture the full wave of 20Hz.
Leo..