may need to cover the floor with plastic first. then i would suggest a sub floor to put the carpet on. don't forget, in the warmer month (s) in NH, there may be condensation if you open the windows to the basement. foam or felt would just retain the moisture.
dan