Accelerometer

I'm using an adxl345 which is a i2c accelerometer. I am trying to use Bluetooth with this but for some reason, the Bluetooth doesn't work when I am using the accelerometer. Does anyone know why this might be?

#include <Wire.h>
#include <ADXL345.h>

uint8_t BT_input = ’ '; // to store input character received via BT.
uint32_t i = 0;
uint8_t state = HIGH;

ADXL345 adxl; //variable adxl is an instance of the ADXL345 library

void setup() {
Serial.begin(9600);
pinMode(2, OUTPUT);
adxl.powerOn();
//look of tap movement on this axes - 1 == on; 0 == off
adxl.setTapDetectionOnX(1);
adxl.setTapDetectionOnY(1);
adxl.setTapDetectionOnZ(1);
//set values for what is a tap, and what is a double tap (0-255)
adxl.setTapThreshold(50); //62.5mg per increment
adxl.setTapDuration(15); //625us per increment
adxl.setDoubleTapLatency(80); //1.25ms per increment
adxl.setDoubleTapWindow(200); //1.25ms per increment
}

void loop() {
Serial.begin(19200);
if (Serial.available())
{
BT_input = Serial.read(); //sets BT_input to what is in serial
if (BT_input == 48) //if received 0 walk foreword
{
Serial.println(“Left”);
digitalWrite(2, HIGH);
state = ~state;

}
if (BT_input == 51) //if received 3 turn left
{
Serial.println(“Left”);

}
}
/*
//Boring accelerometer stuff
int x, y, z;
adxl.readXYZ(&x, &y, &z); //read the accelerometer values and store them in variables x,y,z
double xyz[3];
double ax, ay, az;
adxl.getAcceleration(xyz);
ax = xyz[0];
ay = xyz[1];
az = xyz[2];

byte interrupts = adxl.getInterruptSource();

//tap
if (adxl.triggered(interrupts, ADXL345_SINGLE_TAP)) {
//add code here to do when a tap is sensed
digitalWrite(2, state);
st

Please edit your post to add code tags, as described in "How to use this forum".

Also, explain what "doesn't work" means.