When you get ready to put your leg down to walk, the muscles in your thigh tense up. So the myoware sensor outputs that different value, and a simple "if else" program moves a servo attached to a prosthetic leg to move the whole leg as you would normally.