Ayuda con app bluetho Arduino nano

hola, tengo el siguiente código y necesito un app sencilla que me muestre la temperatura y humedad. agradezco cualquier ayuda.

#include <SoftwareSerial.h>
#include <dht.h>

#define dataPin 2 // Pin del sensor DHT22
dht DHT; // Objeto del sensor

SoftwareSerial hc06(10, 11); // TX, RX del módulo HC-06

void setup() {
  hc06.begin(9600); // Velocidad por defecto del HC-06
}

void loop() {
  int readData = DHT.read22(dataPin); // Leer sensor DHT22

  float t = DHT.temperature;
  float h = DHT.humidity;

  if (readData == DHTLIB_OK) {
    // Enviar datos con decimales (por separado o formateado)
    hc06.print("Temp: ");
    hc06.print(t, 2); // Un decimal
    hc06.print(" °C | Hum: ");
    hc06.print(h, 2); // Un decimal
    hc06.println(" %");
  } else {
    hc06.println("Error de lectura");
  }

  delay(2000); // Esperar 2 segundos entre lecturas
}

Here is an updated blocks sample illustrating these ideas ...

BlueTooth_delimiter_sample.aia (3.4 KB) global message
Split the message at '|'

thank you so much

Dear @Sneyder_Leon_Bravo,
in addition to all what @abg has already said, please be aware of a couple of things:

  1. the delay() function (depending on which Arduino IDE and board you use) is blocking completely the CPU, therefore it could also block the BT transmission. It is more advisable if you use your own delay function, like:
    MyDelay(unsigned long Timeout)
    { unsigned long ToWait = millis();
    while ((millis() - ToWait) < Timeout) ; // do nothing but keeps alive the CPU
    }

  2. typically the SoftwareSerial initialization is made by allocating the Rx on pin 10 and the Tx on pin 11, therefore please verify if you have correctly connected the wires : i.e. the Tx pin of the Nano board to the Rx pin of the HC06 and the Rx pin of the Nano to the Tx of the HC06.
    The following diagram could help:

  3. to check whether on Arduino side, everything is working well, you could use the Serial Bluetooth Terminal app (free on playstore) so you can easily debug your system before going deeper in your app development/debug.
    image

Best wishes