Microcontroller code for our Senior Design project