You need to set up your serial port so that all serial parameters match the parameters of the sensor that you are trying to communicate with. This includes baud rate, start bits, stop bits, parity, etc. If you don't have a datasheet that gives you these parameters, you will have to do some experimentation. I would suggest that you get a simple terminal program so that you can easily verify operation. I recommend Br@y terminal. Only because it is very lightweight, and it lets you set all parameters from the main screen. Once you know all the serial parameters, it should be easy to get your program to work. There are many good example of serial software on CP that will help you. Also, once you get Br@y terminal to work with your sensor, you can test your code with Br@y. -squeaker-