According to
The Ordinary Parent's Guide to Teaching Reading
, there's a rule on how to pronounce "the." It's "/thuh/ before words beginning with consonants and /thee/ before words beginning with vowels."
Seriously? I had no idea. I think I always say /thuh/.