help bluetooth

Dear.
I have problems with bluetooth hc 06.
He had a scketch that worked well. But now it does not work. hc 06 connects me but does nothing. No problem if you will ide or plate, but I've had in others and either.

any ideas

#include <SoftwareSerial.h>
SoftwareSerial BT(10,11);
int led=13;

void setup()
{
BT.begin(9600);
Serial.begin(9600);
pinMode(led,OUTPUT);
}

void loop()
{
while (BT.available())
{
int dato= BT.read();
digitalWrite(led,LOW);
switch(dato)
{
case '9':
{
digitalWrite(led,HIGH);
Serial.println("Led encendido");
break;
}
case '0':
{
digitalWrite(led,LOW);
Serial.println("Led apagado");
break;
}
}
}
}

Carellano:
He had a scketch that worked well. But now it does not work.

Code does not not work after working unless you change it. The problem may be one of procedure.
You might find the following background notes useful

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

You're in luck friend! I just finished an article on this very topic! Here's the link. Let me know if you have any issues by posting it there. Good Luck!

Arduino Forum > Using Arduino > Networking, Protocols, and Devices > Making HC-06 Bluetooth TX/RX Module work with Arduino Uno

https://forum.arduino.cc/index.php?topic=426821.msg2941395#new