Long-Range (LoRa) technology holds tremendous potential for regulating and coordinating communication among Internet-of-Things (IoT) devices due to its low power consumption and cost-effectiveness. However, LoRa faces significant obstacles such as reduction in coverage area, a high packet drop ratio (PDR), and an increased likelihood of collisions, all of which result in substandard data rates. In this paper, we present a novel approach that employs a relaying node capable of allocating resources dynamically based on signal parameters. In particular, the geometric placement of the relay node is determined by a genetic algorithm that maximizes signal-tonoise ratio (SNR) and signal-to-interference ratio (SIR) success probabilities. Using equal-area based (EAB) spreading factor (SF) distance allocation scheme, the coverage area is sliced into distinct regions in order to derive the success probabilities for different communication stages. Furthermore, we present a frequency channel shuffling algorithm to prevent collisions between end devices (EDs) without increasing the complexity of the relaying nodes. Through extensive simulations, we demonstrate that our proposed scheme effectively expands the coverage area, conserves transmission resources, and enhances the system's throughput. Specifically, our approach extends the range by up to 40%, increases the throughput by up to 50% compared to conventional methods, and achieves a 40% increase in success probability. To validate the practicality of our approach, we implement our algorithm in an active LoRa network utilizing an ESP32 LoRa SX1276 module, showcasing its compatibility in real-world scenarios.