I've had issues with new KS going bad. Make sure its a genuine OEM knock sensor (hitachi/nissan). it never came back after putting the right knock sensor on. Also overtorque can cause issues/break your KS.
last resort, this works also (did this on my last s13)
How to Bypass Knock Sensor. S13 Ka24DE OBD1 - Nissan 240SX Forums