Unless installed as part of a listed tub or shower assembly, switches will not be installed in wet locations. The NEC states that a damp/wet location is within 36 inches of either the edge of a tub sink or basin or an area that is subject to spray.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.