Arduino code for senior thesis