LoRa SX1278/ESP32 relay control

I just can not figure out how to store the information received

But, you did figure out how to read it, and write it to the serial port. Quit just throwing the data away.

Serial Input Basics specifically refers to serial data, but the concepts work for ANY stream of data.