Smart farming is one of the immense applications of Wireless Sensor Networks (WSN). Still, most of the researches have been focusing on precision agriculture using WSNs. In general, the nodes within the wireless sensor systems are self-configured. Based on the application requirement, gadgets within the region of interest collect data, prepare it, and send it to the recipient. The biggest impediments to these sensor systems are collision, restricted battery, and transmission capacity. Due to these characteristics, the node battery depletes earlier, when it starts working. Currently, agriculture depends on rain due to the lack of water resources and irrigation services. The crop development depends totally on the factors of water, the climatic conditions of the soil, etc. In large-scale agriculture, it is exceptionally problematic to analyze all the parameters accurately throughout the growing field. In this article, high-precision architecture for large-scale agriculture has been proposed. An IoT (Internet of Things) enabled WSN has been built and installed in the respective areas to measure the physical quantities regularly. In addition, Lévy-Walk Bat (LWBA) algorithm has been proposed to optimize the collected data. The prediction accuracy of the collected data is evaluated by LWBA and then, it is compared with the existing optimization algorithms with different error solvers. It has provided the exact information regarding the whole landscape and it will help the farmers to irrigate precisely.