From e23baf9d5d16c1620aedbec266a9ef28accd72d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=B8rch?= Date: Tue, 23 Jun 2015 23:20:03 +0200 Subject: [PATCH] Removed "sensor conditioning code" as it made one of my sensors go haywire, so not the right thing to try and heat the sensor momentarily.. --- .../SensebenderMicro/SensebenderMicro.ino | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/libraries/MySensors/examples/SensebenderMicro/SensebenderMicro.ino b/libraries/MySensors/examples/SensebenderMicro/SensebenderMicro.ino index 72467ab..1dc3e77 100644 --- a/libraries/MySensors/examples/SensebenderMicro/SensebenderMicro.ino +++ b/libraries/MySensors/examples/SensebenderMicro/SensebenderMicro.ino @@ -113,23 +113,10 @@ void setup() { gw.begin(NULL,AUTO,false); #endif -// --- following code will heat up the sensor element, and wait until the temperature is -// within 0.3 degrees celcius of the initial temperature (measured at startup). -// This is to try and burn away residue humidity from manufacturing process. - int temperature = humiditySensor.getCelsiusHundredths(); - - humiditySensor.setHeater(true); - delay(500); - humiditySensor.setHeater(false); - - int t = 0; - do { - t = humiditySensor.getCelsiusHundredths() - temperature; - } while (abs(t) >30); -// --- + humiditySensor.begin(); + digitalWrite(LED_PIN, LOW); - humiditySensor.begin(); Serial.flush(); Serial.println(F(" - Online!")); gw.sendSketchInfo("Sensebender Micro", RELEASE);