Code with button presses and switch. also reads from both serials. Not currently working