Never trust anything mate just because it comes out of a box and is new.
Always go with gut feeling and if the original diagnoses was a sensor and it did not cure the problem then assume that replacement sensor is duff. Stick with the original diagnoses and quite often sensors etc are best bought as oem, unless you know a reliable source that can vouch for replacement ones.
Glad you got it back on the road