Wireless sensor networks provide distributed sensing and processing to a wide range of applications that operate in different environments. The sensor nodes are small in size, inexpensive, resource constrained and usually densely deployed in the target area. To be able to perform their intended duties, one of which is relaying information to other nodes in the network, a routing protocol is needed. In this paper we present an efficient flooding protocol called link quality-aided flooding (LQAF) with a new dynamic delay function. The dynamic delay function uses the link quality to decide the rebroadcasting delay. This lowers the contention of the wireless medium and also reduces some unnecessary transmissions. The results show that the number of rebroadcasting nodes are lower using this protocol when compared to the other methods used. However, in low density networks the reachability of LQAF is lower than the other methods. But as the network density increases so does the reachability and in high density networks the reachability is close to one. It is also shown that this protocol has the lowest energy consumption compared with the other protocols. These results make it a good candidate for dense wireless networks with resource constrained nodes.