Hallo,

PORTB spezifisch:
jeder I/O hat ein INTERNER PULLUP Widerstand.
Weil du hier ein PULLDOWN hast muss du im Programm Pullups abschalten.
Du muss prüfen ob bei dir PULLUPs (PORTB) abgeschaltet sind...

Viel Erfolg!!

Grüß,
el_net_fun