Tell us about yourself!
Hi! There is some missing parts here. At first attiny has no serial object declared, so yo need to add #include <SoftwareSerial.h>, after that you need to declare the Serial object and setup the Rx and Tx pins.
So, I made it with some differences: Arduino Pro Micro, ADXL345 and enhanced software.