Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: HR202 Humidity Sensor on: January 20, 2013, 01:00:41 pm
ok, tks.

I will figure out to transform it into a formula using also the ambient temperature matter.

tks
2  Using Arduino / Sensors / Re: HR202 Humidity Sensor on: January 20, 2013, 10:37:38 am
fixed. tks
3  Using Arduino / Sensors / HR202 Humidity Sensor on: January 20, 2013, 09:51:46 am
Hello,

I got a HR202 humidity sensor and I have no idea how to convert the analog result to HR%. I haven't found any exemple code at internet.

If someone have a example, please send to me. I apreciate.

the datasheet is here: ftp://imall.iteadstudio.com/Sensor/IM120712018/DS_IM120712018.pdf

int analogPin = 0;

void setup()
{
  Serial.begin(9600);          //  setup serial
}

void loop()
{
  Serial.print("Analog: ");
  Serial.print(getValue());
  Serial.print(" Digital: ");
  Serial.println(digitalRead(digitalPin));
  delay(1000);
}

float getValue() {
  val = analogRead(analogPin);
  // need some calca to HR%
  return val;
}
Pages: [1]