Code to capture serial string as variable

I’m having a bit of trouble capturing an sms message from my dashboard and setting it as a variable. I can see data come through a serial monitor. I can program the board to do what i want locally, I just want to get a string from sms and save it in a variable in my script to trigger pin output. can someone help me with this?

This might help: Howto send data to dash pro? - #6 by zheng

We also have some code in github that uses a similar approach: hologram-dash-arduino-examples/rgbleds.ino at master · HologramEducation/hologram-dash-arduino-examples · GitHub