Using an interrupt and LoRaWAN

I know what my problem is now.

Great.

This is just a snippet of my answer.
Hope that's OK with you.