/boot/config.txt

dtoverlay=gpio-fan,gpiopin=18,temp=75000