added arduino code and code with serial