Wrote arduino code