Reads serial data for Arduino and motor control