Brinarpi:
Please check wether is usable or not.
You first.
Try the program and then you can tell us what it does.
The Arduino system is designed for experimenting and learning-by-doing. Testing must become an essential part of your program development process.
...R