 #define BLE_RDY   2
 #define BLE_RST   9
 
+#define DHTTYPE DHT22
+#define DHTPIN 3
+
+DHT dht(DHTPIN, DHTTYPE);
+
 BLEPeripheral blePeripheral = BLEPeripheral(BLE_REQ, BLE_RDY, BLE_RST);
 
 BLEService tempService = BLEService("CCC0");
+BLECharacteristic tempCharacteristic = BLECharacteristic("CCC1", BLERead | BLENotify, 7);
+BLEDescriptor tempDescriptor = BLEDescriptor("2901", "Temp Celsius");
 
-BLEIntCharacteristic tempCharacteristic = BLEIntCharacteristic("CCC1", BLERead | BLENotify);
-BLEDescriptor tempDescriptor = BLEDescriptor("2901", "Celsius");
+BLEService humidityService = BLEService("DDD0");
+BLECharacteristic humidityCharacteristic = BLECharacteristic("DDD1", BLERead | BLENotify, 6);
+BLEDescriptor humidityDescriptor = BLEDescriptor("2901", "Humidity Percent");
 
-volatile bool readTemperature = false;
+volatile bool readFromSensor = false;
+
+float lastTempReading;
+float lastHumidityReading;
 
 void setup() {
   Serial.begin(115200);

  Serial.print(F("Disconnected event, central: "));
  Serial.println(central.address());
}

// TimerOne library: https://code.google.com/p/arduino-timerone/
#include <TimerOne.h>
// DHT library: https://github.com/adafruit/DHT-sensor-library
#include "DHT.h"
#include <SPI.h>
#include <BLEPeripheral.h>

