My fan is running always on

No, this is not correct.

[heater_fan hotend_fan]
pin = PE5
max_power = 1.0
kick_start_time = 0.5
heater = extruder
heater_temp = 50.0
  • The condition, on which the fan is turned on, is given by the heater directive. In this case: As soon as your extruder’s heater is active, the fan shall turn on
  • The heater_temp directly can be read as “turn off below”. In this case: Once the fan has become active due to extruder heater being active, the fan shall stay on, until the heater’s temperature dropped below 50°C → This temperature has to be chosen with this safety aspect in mind that neither the filament in the heat-sink / heat-break no the extruder’s mount shall be damaged.

What you need to be sure:

  • The extruder heater is indeed not active
  • You did not accidentally build your firmware with some pulled-high pins in GPIO pins to set at micro-controller startup
  • Validate your board’s firmware settings
  • Validate your electrical connections