What is PortB.3 in your example ?
It is not defined,
I think it is an input,
and you use it as a variable for the SERIN-Command.

tse tse tse