Chrisrocks23:
I apologize, the vibration switch detects when the person wearing it steps. so that it plays the pattern for every footstep. I believe the vibration switch is for the boolean stepping.
That is still not clear.
Are you trying to detect a pattern from the vibration switch - or do you just want to know whether the person is walking or stationary?
If the latter, how will you define the difference?
I am wondering why you want to use the code for the analogSensor at all?
...R