added arduino side of the code