Will this code work for Arudino.

It might work if you get rid of the italics.
Go back to your post, click on "modify", highlight the code, the click on the # icon on the toolbar, then click on "save"