Perhaps not applicable to your need, but if there is no restriction as to the complexity and cost, a solution based on recognition of image patterns could be considered. Nowadays, cameras with embedded processing capability are also called "vision sensors." Wearing the arm and forearm with straight lines painted with a color that can be optically filtered by lens, the result is a black background, making visible only those markers, therefore being easier to perform the pattern matching.