This code was made for a LOLIN32 board, which says 'LOIN32' on its board. This indicates a Chinese rip-off, but we haven't told him yet.
Besides the writers, the arduino package. You'll need to be in the dialout group to use it.
arduino
dialout
sudo usermod -aG dialout $USER