The document proposes a routing algorithm called IDDR for wireless sensor networks that aims to provide both low delay for delay-sensitive applications and high data integrity for integrity-sensitive applications. IDDR constructs a virtual hybrid potential field to separate packets by application type and route them along different paths, improving data integrity by caching packets on underloaded paths while reducing delay by sending delay-sensitive packets along shorter paths. Using theoretical analysis, the authors prove IDDR is stable, and simulations show it provides differentiated quality of service for different application requirements.