How I can check my BT JY-MCU?

Hi guys I have this BT, but when I connect it to my arduino I do not recognize any device. Can it be that the receiver is broken?
I have tried in all tx and rx
the code:

int valor = 0;   
int select = 0;
int valor2 = 0; 
 
void setup()
{
Serial.begin(9600);
}
 
void loop()
{
if(Serial.available() > 0) 
{
select = Serial.read();
switch(select)
{
case 'a':    //Si se escribe "a" nos enviara la temperatura del LM35
valor = analogRead(A0); // Se lee el ADC 0 y el valor se guarda en la variable “valor”
Serial.print((5.0 * valor * 100)/1023);
delay(10); // Retardo de 10 milisegundos
Serial.println("°C LM35");
delay(5000);
break;
 
case 'b': 
valor2 = analogRead(A1);
Serial.print((5 * valor2 * 100)/1023);
delay(10); // Retardo de 10 milisegundos
Serial.println("°C MCP9701");
delay(5000); 
break;
 
default: 
Serial.println("error");
delay(500);
}
}
}

click the MODIFY button in the upper right of the post window.
Highlight all you code.
click the "#" CODE TAGS button on the toolbar above just to the left of the QUOTE button.
click SAVE (at the bottom).
When you post code on the forum, please make a habit of using the code tags "#" button.

How I can check my BT JY-MCU?

http://forum.arduino.cc/index.php?topic=101452.0

I would simplify the code for the initial testing if the device actually works. For instance, try just sending some string over BT to your computer/phone, forget about input for sensor etc:

void setup(){
   Serial.begin(9600);
  delay(100);
}

void loop(){
   Serial.println("TESTING...");
   delay(1000);
}

There should be LED on the module, is it blinking when you connect it to your Arduino?

simplify the code for the initial testing.........forget about input for sensor etc:

That is the best advice you will get all day

Here is some background

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

teoqba:
I would simplify the code for the initial testing if the device actually works. For instance, try just sending some string over BT to your computer/phone, forget about input for sensor etc:

void setup(){

Serial.begin(9600);
  delay(100);
}

void loop(){
   Serial.println("TESTING...");
   delay(1000);
}




There should be LED on the module, is it blinking when you connect it to your Arduino?

yes, the led is blinking when you connect it to your Arduino, but I found with my sIV, but does not see it

I don't know what sIV is.

You should be able to pair your BT module with other device without TX and RX lines connected. Power and the ground is enough.

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

Check and follow instructions in point 9 of Nick_Pyner document - it gives all the details.

I don't know what sIV is.

Where did you get "sIV" from ?

yes, the led is blinking when you connect it to your Arduino, but I found with my sIV, but does not see it

SIV is samsung galaxy S4