I am currently using the folowing code to read a serial port streaming a numeric number and I would like to adapt it so I can read a second streaming number from the same port.

I can Prefix the numeric number with a letter or a colon.

Please can you help

thank you in advance Nevjc

Delegate Sub myMethodDelegate(ByVal text As String)
Dim myDelegate As New myMethodDelegate(AddressOf ProcessReading)

Private Sub SerialPort_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles sp.DataReceived
Dim str As String = sp.ReadLine()
Invoke(myDelegate, str)
End Sub
Sub ProcessReading(ByVal input As String)
If IsNumeric(input) Then
temperature = CDbl(input)
Label1.Text = CDbl(input)
End If
End Sub