I am using a setup that helps controlling humidity in an enclosure used to store a humidity sensitive product. My original posting is here.
I'm using a NANO and a DHT22 temperature/humidity sensor to acquire information on the actual condition in the enclosure; I am also using a 75% RH calibration kit to check the accuracy oh the humidity reading by the UNO and I found the value 9 percentage points higher than the kit's calibration value. Right now, until I find a solution to calibrate the unit, I have set my setpoint 9 points higher to compensate for the error. Any ideas on how to tackle this issue would be highly appreciated.
At the moment I can read the DHT sensor and show the humidity value on the LCD like this:
[...]
int chk = DHT.read22(DHT22_PIN);
lastcheck = millis();
lcd.setCursor(0, 0);
lcd.print("Humidity: ");
lcd.setCursor(13, 0);
lcd.print(DHT.humidity);
[...]
@Thomas_Weller, I'm running tests with your calibration routine and other code changes; I'm using your arbitrary values for testing purposes only; the compensation algorithm works, as sampled below, however the LCD output is the actual DHT22 reading, not compensated. I am testing with a different sensor, whose output is 9% below the actual RH value. Here's a sample of the serial output:
DHT value: 58
Compensated to: 55
DHT value: 59
Compensated to: 56
DHT value: 60
Compensated to: 57
DHT value: 61
Compensated to: 58
DHT value: 62
Compensated to: 59
DHT value: 63
Compensated to: 60
DHT value: 64
Compensated to: 60
setpoint = 72
DHT read = 66.80%
displ + backlights off
humidifier ON, fan OFF
setpoint = 72
displ + backlights off
humidifier ON, fan OFF
setpoint = 72
displ + backlights off
humidifier ON, fan OFF
setpoint = 72
DHT read = 66.80%
displ + backlights off
humidifier ON, fan OFF
setpoint = 72
displ + backlights off
humidifier ON, fan OFF
setpoint = 72
displ + backlights off
humidifier ON, fan OFF