As your sketch is just a pipe through application it depends very much on what you send from the PC if the sensor is able to answer. And as your sketch does nothing than piping characters through, remove the end of line detection and send each character as it arrives. This way you'll see what the sensor may answer even if there's no CR character. If you still don't receive anything, post an image of your cabling.