Fan controlled By heat.
The most simple thing you could do is buying a 40°C bimetal thermoswitch (normal open) and wire it in series with your fan. They are about 0,20 to 3 Euro a piece.


https://www.google.de/search?q=bimetallschalter+40%C2%B0C&amp;tbm=shop