I did not have a knock sensor on my '91 so I did not have to worry about this (Mine just has a plug in the block by the driver engine mount). If your Jeep originally had a knock sensor, I would keep the same sensor so that the ECM gets the correct voltage signals and can correct accordingly.
Hey everyone, I have recently swapped a 99 XJ 4.0L into my 91 MJ and because of all the confusion I found researching the topic, I decided to create a solid write up on this. My 99 engine still contains the new style intake manifold to maintain the better air flow. This will be mostly text here...