I hope I have commented it enough for you to understand and play with.
The 260 , 900 and 0 , 180 values in map may have to be adjusted to suit your servo range.
Yes, Tom, thanks a lot, I got it, I added the void to display the values, and I guess that'll be all right? Because I do not see any problem with the code, anyway if you have any other relevant comment I would appreciate it.
I'll just need to implement it with the glove.
I just need to check the program with the systems working because now the next challenge would be to think of something for the light of a led does not interfere with the others