Avoid using characters when reading and writing to te serial port