More information would be helpful. How many fish, what kind of fish, how much water, how much grow space, how are you growing your plants? Bad smell is usually caused by anaerobic conditions in your tank or growbed. Are you using a media based system? How are you aerating your water?