added arduino code prototype