MOVED the code in the arduinoClient directory