2010 27" iMac - ambient sensor connection on cpu fan
The image below was taken from page 238 of the Apple Technician Guide iMac (27-inch, Mid 2010). There are other images regarding the sensor cable in the document.