I have been testing LoRa with Meshtastic lately using ESP32 boards (Heltec and Lilygo) and am looking to try now with M5. Built into the platform is support for environment sensors, other may need a bit of work to add (which is what I am hoping to do). I have a test mesh of 6 nodes, and only 1 is connected to my WiFi. Each node sends telemetry data with is read by the one (on WiFi) which in turns sens the message to an MQTT server. I then use Node-Red to process and push write the data into MongoDB.
LoRaWAN uses LoRa to communicate with the gateway, so as long as it is reachable by the sensor you should be able to get your data.
The LoRaWAN gateway does the bit of connecting your sensors to the cloud/network where you can access them.
HTH.