WiFi LoRa 32 (V2.1) Range and Spreading Factor

You can use these two examples.