A sensor would be easy enough, there are simple non-smart sensor fan timer that will activate a fan for a programable time.