Skip to content

Commit e23baf9

Browse files
committed
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..
1 parent c497cf7 commit e23baf9

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

libraries/MySensors/examples/SensebenderMicro/SensebenderMicro.ino

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,23 +113,10 @@ void setup() {
113113
gw.begin(NULL,AUTO,false);
114114
#endif
115115

116-
// --- following code will heat up the sensor element, and wait until the temperature is
117-
// within 0.3 degrees celcius of the initial temperature (measured at startup).
118-
// This is to try and burn away residue humidity from manufacturing process.
119-
int temperature = humiditySensor.getCelsiusHundredths();
120-
121-
humiditySensor.setHeater(true);
122-
delay(500);
123-
humiditySensor.setHeater(false);
124-
125-
int t = 0;
126-
do {
127-
t = humiditySensor.getCelsiusHundredths() - temperature;
128-
} while (abs(t) >30);
129-
// ---
116+
humiditySensor.begin();
117+
130118
digitalWrite(LED_PIN, LOW);
131119

132-
humiditySensor.begin();
133120
Serial.flush();
134121
Serial.println(F(" - Online!"));
135122
gw.sendSketchInfo("Sensebender Micro", RELEASE);

0 commit comments

Comments
 (0)