Cooling Fan problem on 2005 Mazda Mazda6

i have noticed for the last week or so that the cooling fan runs well after the iginition is turned off i was told there may be a problem with the ect sensor. however i am having a hard time locating. one know where it is located and how to remove and replace

Asked by for the 2005 Mazda Mazda6