I have the same iMac model but still stock and unfortunately the HDD must be replaced with the same Apple version drive for the thermal sensor to fit and work with these and some other later Mac models. Almost impossible unless done by an authorized Apple Service dealer.
I also use the
Macs Fan Control as I prefer to run my Macs cooler than Apple specs the speed. Or the OWC thermal cable as suggested but the
Macs Fan Control should work just as well if not better control, and cheaper!!! I like both of those!!
http://www.crystalidea.com/macs-fan-control
PS for the OP: who did the "HD upgrade and RAM" on your iMac, and they should have known about the sensor and fan speed problem if they were a decent Mac tech??? Just saying…
- Patrick
======