Dear @Noobie ,
By looking to your Arduino code, a question arise to me: what kind of Arduino board and BT shield are you using ? And to which pins of the Arduino board are you connecting the shield ?
Please be aware that the serial.write() instruction drives the hardware serial line of the Arduino, and is used to communicate toward the PC monitor.
In other words if you haven't connected the BT shield to pins 0,1 of the Arduino board, but to other pins, you shall use the Softwareserial library instead. And connect the BT shield to pins 10,11 (typically). Please take a sight to my answer to another very similar topic:
Unless that you are really sure that the Arduino board is granted to send the data, you can break your head against the wall before having the AI2 code working... ![]()
Hoping it helps.
ciao, Ugo.