start optimization of read_arduino functions