add a delay(1) otherwise the usb serial port stops working