Serial.print(data);
Serial.print("\n");
implies (to me at least) you are using the serial monitor at the same time? If you are this will be interfering with the Bluetooth.
While debugging it may be better to use software serial for the Bluetooth module then you can use the serial monitor for printing out the received data etc.