Example of openHAB rule reading from a file
but as said, why not bypass the external scripts and jus read from serial