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.pdfint 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;
}