Why would you remove the thermostat housing?

The temp sensor is UNDER it, screwed into the lower intake itself. Unplug the wire connector and get a wrench or socket on it and remove it.