Wireless Sensor Network (WSN) receives huge attention from various remote monitoring applications because of its self configuration, ease of maintenance and scalability features. But, the sensors of the WSNs vulnerable to malicious attackers due to the energy constraint, open deployment and lack of centralized administration. Therefore, the secure routing is established for achieving the secure and reliable data broadcasting in the WSN. In this paper, an Adaptive Decision and Levy Flight based Artificial Hummingbird Algorithm (ADLFAHA) is proposed for performing an effective secure routing under the blackhole and Denial of Service (DoS) attacks. The ADLFAHA is developed to perform Secure Cluster Head (SCH) selection and secure path identification according to the trust, energy, load and communication cost. An adaptive decision strategy and levy flight incorporated in the ADLFAHA is used to enhance exploration and achieves global optimization capacity that helps to enhance the searching process. Moreover, the developed ADLFAHA helps to avoid the congestion among the nodes by balancing the load in network. The ADLFAHA is analyzed using End to End Delay (EED), throughput, Packet Delivery Ratio (PDR) and overhead. The existing researches such as Firebug Optimized Modified Bee Colony (FOMBC) and Lightweight Secure Routing (LSR) are used to compare the ADLFAHA. The PDR of the ADLFAHA for the simulation time of 100 s is 98.21 that is high than the FOMBC and LSR.