Accelerometer via Serial to Touchdesigner

Hello,
With my friends we used to have a great project using an accelerometer ADXL345 connected to Touchdesigner via serial to trigger visuals. However it seems that we have lost the Arduino code to go with it and we would like to play with the project again… By any chance, could someone help us? We would be super grateful.
Best