modified to use USB-Serial instead of Bluetooth