OK,
Let's start from the beginning.
You have a fan, in a room. Which room - a kitchen, bathroom, utility, where?
What sort of fan is it: standard, humidity, timer,
PIR?
How does it switch on and off. With the light, or does it have a separate switch?
Answers please, then we can discuss the question. Thanks