Hopefully this is the right place for questions (?).
I can post my set-up and code if you want. Code compiles OK but fan won’t run
NO - not the right place. I have suggested to the Moderator to move your Thread to "Project Guidance"
YES give us as much information as possible - your program and a photo of a clear pencil drawing showing all your connections.
Thread moved as requested.