1. An electrical stimulation device comprising: an orthotic for a body part of a person, a sensor on the orthotic for detecting movement of the body part, an electrode on the orthotic for contacting the skin surface over a muscle of the body part, and a controller in electrical communication with the sensor and electrode for receiving a sensor signal, comparing the sensor signal to a threshold value and generating an electrical output from the electrode if the sensor signal exceeds the threshold value.