Throttle Body Cleaner

Where is the temp sensor located? How much does it cost to buy a new one? Is it hard to remove/replace? Is it expensive to replace the MAF as well? Maybe rather then attempting to clean these things I should just bite the bullet buy them brand new and this way I know they fuction properly.