The configuration must match the board - otherwise it will not work. There may be similar configurations that will also work.
Unfortunately, I am not familiar with LoRa or the board. However, your code deals with many other things that have nothing to do with LoRa, such as Deep Sleep. Leave that out for now and focus purely on LoRa.
You can find good tutorials at randomnerdtutorials.com.