put the controller code in here too (arduino)