This did not help. The output of sudo systemctl shows pigpiod service enabled and running on boot, but the fan doesn't run. The only way to get the fan running is to kill the pigpiod process, restart it with sudo pigpiod and then manually run the fan script.