Use the chrome.serial module to read from and write to a device connected to a serial port.
chrome.serial