Rylr896 lora module

The Serial Input Basics tutorial should give you some good ideas.

Avoid using String objects with AVR-based Arduinos, like the Uno. Strings cause memory problems and program crashes.