How to connect two ESP32-S3 LoRa32 V3 with each other

Hi experts, I am new here and I will be so glad if someone can help me find out the code that I have to use to connect two carts ESP32-S3 with each other in a distance valued as 1km.
Thank you very much!!!

You can try this example, https://github.com/HelTecAutomation/Heltec_ESP32/tree/master/examples/LoRaBasic/pingpong