Leg sensor