Config Pinb.2 = Input
Config Pinb.1 = Output
Config Portb.2 = Input

Warum Portb.2 nochmal konfigurieren?