This string is missing a closing curly brace, which should be a syntax error. Iād recommend posting code in code blocks in future - see the How to Use the Blue Robotics Forum post for how to do that
More generally, did the initialisation work? If not, are you sure the device is actually at /dev/ttyUSB0
? If initialisation fails then none of the other interactions with the sonar will work either.