How do you know

How do you know if you have a yeast infection? And if I have it should I stop having sex?