This was done with minimal changes. Further changes should probably be made to improve code, but this is enough to get it working.
Using the latest Serialport package is important to avoid bugs found in older versions.
The installed version of Winston was causing error in the current LTS Node.js version. Updating to Winston 3 is non-trivial, and I could not see any benefit to using Winston over just using console.
This was done with minimal changes. Further changes should probably be made to improve code, but this is enough to get it working.
Using the latest Serialport package is important to avoid bugs found in older versions.
The installed version of Winston was causing error in the current LTS Node.js version. Updating to Winston 3 is non-trivial, and I could not see any benefit to using Winston over just using console.