HC-05 Data transfer probem

Hi,

I try to know if there is a communication with my arduino HC05 and my computer (Windows 10)
I have done this tutorial : http://www.instructables.com/id/Arduino-Reading-Sensor-Data-Using-Bluetooth/
with my own code :
/*

  • CONNECT TO OUTGOING PORT HC-05 'DEV-B' TO VIEW DATA ON SERIAL MONITOR
  • USE THIS SKETCH ONLY FOR VIEWING SENSOR DATA ON SERIAL MONITOR.....NOT FOR FILE WRITING
    */
    //int temp; //variable to hold temperature sensor value
    long tm,t,d; //variables to record time in seconds

void setup()
{
Serial.begin(9600);
Serial.print("hello");
//pinMode(0,INPUT);//temperature sensor connected to analog 0
analogReference(DEFAULT);
}

void loop()
{
//temp = analogRead(0); //analog reading temperature sensor values

//required for converting time to seconds
tm = millis();
t = tm/1000;
d = tm%1000;

Serial.flush();

//printing time in seconds
Serial.print("time : ");
Serial.print(t);
Serial.print(".");
Serial.print(d);
Serial.print("s\t");

//printing temperature sensor values
//Serial.print("temperature : ");
//Serial.print(temp);
//Serial.println("f");

delay(2000);//delay of 2 seconds
}

My code is working because, with the cable connection, I received the data : 1s ; 1s2 ;...
But when I choose the Port corresponding with the HC05, it doesn't work.
Someone can help me ?

It is possible that I forgot some information, do not hesitate to ask them.

Thank you very much,

Franzouille

How is your HC05 connected to your Arduino?

Make a simple drawing showing all the connections and post a photo of the drawing.

Is your PC pairing correctly with the HC05?

...R