Main arduino code. Currently just psuedo-code