COngestion Detection and Avoidance (CODA) approach described by Wan et al.
I am not sure about how to exactly implement in opnet. You need check the opnet developer manual specifying that how to incorporate your own protocols or something like that.
Another way is to use Castalia network simulatior which is specifically designed for WSN, while openet is general purpose and also not free.