Here is a simple Circuit to automatically switch ON and control a speed of a Fan. For the simplicity of the circuit we have not included control to AUTOMATIC FAN CONTROLLER