I designed a sensor glove in order to measure the flexion in a Scleroderma patients finger. The flexion of the finger joints was measured using accelerometers on either side. By measuring the gravitational pull of the earth and doing some vector math, you can compute the angles.