How to create a distance matrix using the HC-SR04 sensor?

Now, I have switched to C# since it already has a Library available (System.IO.Ports). But When I am trying to convert the Serial.println data to float on C#, it returns a blank console.