You don't need to drive a specific number of miles to reset an oxygen sensor. The sensor will reset during a complete drive cycle, which typically involves driving at various speeds for about 50-100 miles.