Hi Larry,

In terms of response to movement, the advice Edmund has given you is great. If you are more interested in muscle activity which occurs to prevent movement, i.e. where you get no data from your accelerometer, you will need to use a threshold detection algorithm, for example a multiple of baseline activity.

Regards
Dan