 //  float reading = random(100);
   
   if (!isnan(reading) && significantChange(lastTempReading, reading, 0.5)) {
-    char formatted[7];
-    dtostrf(reading, 3, 1, formatted);
-    tempCharacteristic.setValue(formatted);
+    tempCharacteristic.setValue(reading);
     
     Serial.print(F("Temperature: ")); Serial.print(reading); Serial.println(F("C"));
     

//  float reading = random(100);

  if (!isnan(reading) && significantChange(lastHumidityReading, reading, 1.0)) {
    char formatted[6];
    dtostrf(reading, 3, 1, formatted);
    humidityCharacteristic.setValue(formatted);
    
    Serial.print(F("Humidity: ")); Serial.print(reading); Serial.println(F("%"));
    

BLEPeripheral blePeripheral = BLEPeripheral(BLE_REQ, BLE_RDY, BLE_RST);

BLEService tempService = BLEService("CCC0");
BLEFloatCharacteristic tempCharacteristic = BLEFloatCharacteristic("CCC1", BLERead | BLENotify);
BLEDescriptor tempDescriptor = BLEDescriptor("2901", "Temp Celsius");

BLEService humidityService = BLEService("DDD0");
BLEFloatCharacteristic humidityCharacteristic = BLEFloatCharacteristic("DDD1", BLERead | BLENotify);
BLEDescriptor humidityDescriptor = BLEDescriptor("2901", "Humidity Percent");

volatile bool readFromSensor = false;
