Temperature sensor cord and hard drive

The temperature sensor cord on my iMac to my hard drive does not fit. The spacing between each connector is different. I also tried to boot in recovery mode and the computer said I did not have a hard drive connected when I did

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0