The drawback of routing in Wireless detector Network is one in every of the foremost researched problem with still have scope of improvement. Several researchers have enforced numerous machine learning and bio- galvanized algorithms and check their models below bound circumstances like unsafe environments etc. A bio-inspired Firefly Algorithm is projected during this paper that works on principle of fix of barmy. Once applying the bio galvanized formula, result displays vital improvement within packet delivery magnitude relation. Because simulation time progresses the packet delivery ratio relation improves because average packet drop decreases. The graph of packet drop and energy is additionally mentioned during this paper. The results compare the FireFly Algorithm with the Bat Algorithm.