add final arduino code