Using multiple Serial communication ports in Arduino Uno

Job ID: 34777262

Budget: $10 – $30 USD

I have a huskylens device connected to the Arduino pins 0/1 for serial communication. I also added a MicroSDcard in the ICSP pins of the Arduino board to write / store data. I need help to be able to switch the ports as needed ( I typically read form the huslylens port and later write to the MicroSDcard).
I am able to to this in a loop fashion (see attached code). but when I want to listen to the huskylens and write information from that to the MicroSDcard , I fail.
The project is for a Elegoo Smartcar 4.0. I am attaching the shields , a few relevant programs (optional to review).