@Stephenbright use H and T parameters of M106. See https://duet3d.dozuki.com/Wiki/Gcode#Section_M106_Fan_On
The temperature you turn it on is up to you. I have mine set to 45C; hot enough that the fan isn’t on when machine is idle, cold enough that it turns on early when hot end is turned on.
Ian