It's very easy to have Mathematica send data through the serial port, where Arduino and Mathematica can be linked.