You shouldn't put a smoke alarm inside a bathroom. The steam from the shower will give you false alarms, and the moisture will cause the smoker detector to fail. You can install a smoker detector in the hallway or just outside the bathroom to detect fires that may start in the bathroom.