Dim bob As String = Arduino.ReadLine()
So, bob is a String.
If bob = 9 Then
9 is not a String, so the test will never be true.
Dim bob As String = Arduino.ReadLine()
So, bob is a String.
If bob = 9 Then
9 is not a String, so the test will never be true.