MAXIMA OBD II reset

My 1996 maxima failed emission due to O2 sensor and low erg flow.I had the repair work done and have driven well over 500 miles yet everytime i go back to get re-inspected (3 times) the OBD II computer keeps saying “not ready”. Anyone have any tips ot tricks to get this resolved.I have heard there are certain drive cycles you need to complete but don’t know what they are…help!