delay(!Bt.available());
I am using this code to wait for data from bluetooth is not available and don't execute further program
Should be
while(!Bt.available());
delay(!Bt.available());
I am using this code to wait for data from bluetooth is not available and don't execute further program
Should be
while(!Bt.available());