How I can transfer the data read of a gas sensor from the "arduino" to the pc by bluetooh hc-06. Should I use the arduino's software or some another platform?
This is my code
#include "DHT.h"
#include "MQ135.h"
#define DHTPIN 5 **
#define ANALOGPIN 5
#define TIMEOUT 3000
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN, DHTTYPE);
MQ135 gasSensor = MQ135(ANALOGPIN);
void setup() {
** Serial.begin(9600);
** dht.begin();**
}
void loop() {
** float h = dht.readHumidity();**
** float t = dht.readTemperature();**
** if (isnan(h) || isnan(t)) {**
** Serial.println("Failed to read from DHT sensor!");**
** return;**
** }**
** float ppm = gasSensor.getPPM();**
** Serial.print("T: ");**
** Serial.print(t);**
__ Serial.print(" C\t");__
** Serial.print("H: ");*
** Serial.print(h);**
** Serial.print(" %\t");**
** Serial.print("CO2: ");**
** Serial.print(ppm);**
** Serial.println(" ppm");**
** delay(TIMEOUT);**
}
Help me please