you either need what they call 3wire romex going to it(its actually 4 wires total, usually a red, black , white, and green/bare copper) the light portion gets black and the fan portion gets red...or vice versa.
If you dont have said amount of wires running to your fan, another option is to go get a Lutron maestro fan kit that works on a 2wire system.
A forum community dedicated to Do it yourself-ers and home improvement enthusiasts. Come join the discussion about tools, projects, builds, styles, scales, reviews, accessories, classifieds, and more! Helping You to Do It Yourself!