This would by highly experimental but it seems you can use Javascript to read from a serial port of the device: https://developer.mozilla.org/en-US/docs/Web/API/SerialPort
But do note that currently only Chrome, Edge and Opera seem to support this.
Regards,
Ronald