-
-
-/*  
-   CONNECTIONS:
-   - GND
-   - Pin 2 to HC-05 TXD
-   - Pin 3 to HC-05 RXD
-   - Pin 4 to HC-05 K0EY
-   - Pin 5+6 to HC-05 VCC for power control
- */
-
 #include <SoftwareSerial.h>  
 
 #include <SFE_BMP180.h>
 #include <DHT.h>
+#include <OneWire.h>
+#include <DallasTemperature.h>
 
 #define HC_05_TXD_ARDUINO_RXD 2
 #define HC_05_RXD_ARDUINO_TXD 3


  pinMode(10, INPUT);
  pinMode(8, INPUT);
  
//  digitalWrite(HC_05_SETUPKEY, HIGH);  // Set command mode when powering up
  
  Serial.begin(9600);   // For the Arduino IDE Serial Monitor
  BTSerial.begin(38400);  // HC-05 default speed in AT command mode

  bt->setState(data);

  if (pressure.begin())
    Serial.println("BMP180 init success");
  else
    Serial.println("BMP180 init failed!!!");

/*
  msg("Pwr on");
  delay(2000);
  
  msg("Applying VCC Power. LED should blink SLOWLY: 2 Seconds ON/OFF");
  
  digitalWrite(HC_05_PWR1, HIGH); // Power VCC
  digitalWrite(HC_05_PWR2, HIGH);  
  
  delay(2000);

  Serial.println("Enter AT commands in top window.");
  BTSerial.begin(38400);  // HC-05 default speed in AT command mode
*/

}

int cnt = 0;


void loop()
{
  unsigned long StartTime = millis();
  
  v0 = analogRead(A0);
  v1 = analogRead(A1);
  v2 = analogRead(A2);
