A fancy bath fan switch, you can set this to run even after you turn the fan off. You can also set it to run a certain number of minutes per hour to meet fresh air requirements of ASHRAE 62.2. (That is depressurization, the worst strategy.) Look for your color/switch type.