Using two ADAfruit MMA8451 accelerometers with one arduino uno

You will need to change the I2C address of one of them, and inform the library.

Adafruit documentation: Overview | Adafruit MMA8451 Accelerometer Breakout | Adafruit Learning System