var SerialPort = require('serialport');
var port = new SerialPort('/dev/ttyACM0', {
baudRate: 9600
});
port.on('readable', function () {
console.log('Data:', port.read());
});
// Open errors will be emitted as an error event
port.on('error', function(err) {
console.log('Error: ', err.message);
})
Data: <Buffer 73 20 46 0d>