I recently had to replace a knock sensor as well. I did it with the accompanying belt and tensioner replacement. I used OEM knock sensor since i've heard that aftermarket ones have caused issues. Hoping you went with an oem sensor. Also since it sat for 3.5 years have you done service?
Since replacing my parts out i haven't had it come back on. it's been 8 months since i've replaced parts on my 2002