training data and simple script to read serial port