Arduino with Bluetooth problem

What is the sender? The Bluetooth serial terminal or your app? I tested the code with the Bluetooth serial terminal and it does work fine.