MOSFET works on Pin 8, but not on pin 9-13

Hello,

I want to control a solenoid with a MOSFET (IRLB8721, Logic-Level). This works perfectly fine on Pin 8, but not on Pins 9-13. Why?
The Gate is directly driven by a IO pin from the Arduino, with a pulldown resistor (10k) to GND.
Can the Arduino provide less current on pins 9-13? I don't undestand this behavior.
Datasheet of MOSFET: https://www.infineon.com/assets/row/public/documents/24/49/infineon-irlb8721-datasheet-en.pdf?
Schematic:

which arduino ? what else does the code do?

if you provide the full code and circuit, we can probably help better.

An Arduino UNO R3.

Oh. I just found the error: only pin 8 was classified as Output. So the other just activated the internal pullup. Yeah, no wonder it did not work.
But Thanks! You made me look closely at my code again!

don't worry we all have forgotten at least once to set the pin as an OUTPUT and wondering what was going on...

  • BTW