A method for calibrating sensors applied to a patient to monitor rehabilitation is disclosed. The calibration method according to the invention that is insensitive to changes in the patient's body position during the calibration procedure—calibration of the flex sensors is facilitated regardless of what orientation they may be applied to the thigh and shank of patient. The calibration method uses three-axis accelerometers defined by software incorporated in local computer.