Communication at 5 miles

It does depend on the terain etc, what is between the TX and RX, but in general that distance seems achievable with LoRa.

Practical examples of sending and receiving sensor data here;

Look for working practical examples using the BME280 sensor in the \sensor folder.