Error: Cannot open serial port '/dev/ttyUSB0': Permission denied To solve the problem, add user to dialout group. # usermod -aG dialout