Keep it under 60% to help avoid microbial growth. Keep it in dark, especially while it is sitll alive, initially, but for other good reasons too. THC is broken down by light.
Lower temps in 60s F are better. This should causes a 7-10 day drying period or so. Depends on other factors too, like density of buds and how much you pile to gether etc etc...
After that you cure it. Think of a humidor. That's the best environement for your buds. Long sterm storage should be vacuum sealed and fridgerated or froozen -- opaque container to block out light. ~55% RH and better not to be air tight, but if it is make sure you burp it regularly.
anaerobic microbes will make it stink and taste like the brown pound you used to get when you didn't know any better, lol.
Boveda packs make it easy to control humidity. Check them out. They give recommendation for size of pack relative to quantity of "herbs."