Fixed sending commands to arduino