changed from handling arduino connected to tty as file, use serial object instead