Wire is black.Hard to tell in the photo so just wondering what color/s is the wire? Also is this the Starboard/right side of the boat or port/left looking from aft towards the bow?
Sometimes the knock sensor is connected to an engine block water drain Y type fitting.