Correcting effects of Humidity on sensors

28 views (last 30 days)
Dharmesh
Dharmesh on 23 Oct 2025 at 13:10
Commented: Dharmesh about 10 hours ago
Hi All
I have gas sensor, that gets effected by hummdity that needs to be corrected. So was hoping to see if we can correct this ?
How can i run my code on the this support forum with my data file, so it can be run?

Answers (1)

Star Strider
Star Strider about 20 hours ago
What sort of correction do you want to do to your data?
Do you also have the humidity data?
Are there any published ways to correct the readings for humidity? If so, please share them.
To run your code with your data here, first upload the data file, using the 'paperclip' icon in the top toolbar (just to the right of the Σ). Click on the 'insert a line of doce' icon in the top toolbar (farthest left icon in the CODE section, or ALT+ENTER) to create a code line, then type or copy-paste your code in it. To run it, press the green arrrow in the top toolbar.
x = linspace(0, 2*pi);
y = sin(x) .* cos(x);
figure
plot(x, y)
grid
Your code should run here essentially the same way it runs on your computer, including reading the file.
,
  5 Comments
Star Strider
Star Strider about 4 hours ago
Edited: Star Strider about 1 hour ago
Torsten -- Thank you!
@Dharmesh -- I am having a bit of trouble understnading this.
What are the various variables? I do not completely understand 'WE" and 'AUX'.
Do you have the actual NOx values? (Is this a calibration test?)
I do not understand the technology of the sensor, and this may be necessary to devise a way of correcting its readings. Do you have a published way of correcting the sensor values for the humidity? Is there a specific way that humidity interferes with the sensor (does it 'poison' it, physically block it, or something else)?
EDIT -- (24 Oct 2025 at 00:45)
See if the sensors dexcribed in HUMIDITY AND TEMPERATURE CORRECTION FACTORS FOR NOX EMISSIONS FROM DIESEL ENGINES matches your sensor. If so, we can probably use one of these correction approaches. Those appear to be relatively straightforward, however it will be necessary to state the units of your data, and make any necessary unit conversions to work with these equations. Specifically, Equation (4) would be easy to code.
.
Dharmesh
Dharmesh about 2 hours ago
Sorry. , the sensor outputs two signals: WE and AUX. The difference between them is that WE includes the gas concentration, while AUX does not. The purpose of this is so that AUX can be used to identify whether any noise or environmental factors have affected the sensor.
However, both signals are influenced by temperature and humidity. Temperature is relatively simple to correct you ensure that the gas concentration is zero (or very close to zero) and then create a baseline by measuring at various temperature steps.
In this case, we can assume that the gas concentration is close to zero. At this stage, we do not need to calibrate the concentration.
The signal we need to focus on is the corrected WE signal, shown in red. Primarily, you can see humidity transients, which simply affect the current and therefore the final voltage.
There is some information on these sensors in the application note, please see the last page:
Sensor data sheet for NO2. All other sensors would in principle be similar

Sign in to comment.

Tags

Products


Release

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!