Fan not working with pins

The processor cannot directly drive a large load like that, you need to use a transistor or relay.

There are examples in the playground.


Rob