What should I change it too? Or should I just remove it?
It is your decision, not mine.
If you don't need a data from ADXL345 - you can also remove all Wire stuff, because in the last sketch you don't use it at all
I need the data from ADXL345, so how do I change my code to include that? Sorry if it's a stupid question, very new to arduino
So you should fix the code from post #19, rather than throw out all data, as you done it in code from post #22
They're Strings.
That's a problem though