how a smart bathroom fan works