Hello Melanie,

Your piece of code didn't work until I... grounded PORTB.2.

So I tried my code and it worked well too.

I didn't expect this component to be so sensible to the electric field around the pins.

I won't forget this lesson, for sure ;-)