Hi scopit

Welcome to the forum. I can suggest you look at your TRISB settings. Have you set RB0 to input direction? If that doesn't work, don't be afraid to post your code here.