Find a connector on the motherboard labeled HD TMP or HDD TEMP.
If the previous temperature cable is still connected to the board here, disconnect and remove it. You will no longer need it.
Connect the temperature sensor's two-wire red-black cable to the motherboard plug labeled HD TMP or HDD TEMP.
Route the excess wire so it does not interfere with any other components.