If your CO₂ sensor provides a 0–5 VDC output corresponding to 0–3000 ppm CO₂, you can use a Linear Equation in SiteView to convert the measured voltage directly to CO₂ concentration.
For this example:
- 0 VDC = 0 ppm
- 5 VDC = 3000 ppm
1. Select the Linear Equation
Open the data logger’s Configuration dialog.
For the 0–5 VDC channel connected to the CO₂ sensor, select:
Linear
as the equation.
2. Configure the Input and Output Range
Click:
Edit Linear Equation
Enter the following values:
- Minimum Input Value:
0 - Maximum Input Value:
5 - Minimum Output Value:
0 - Maximum Output Value:
3000
SiteView will then linearly convert the measured voltage to the corresponding CO₂ concentration.
For example:
1 VDC = 600 ppm2.5 VDC = 1500 ppm5 VDC = 3000 ppm
3. Select or Create the CO₂ Unit
Select ppm as the output unit.
If a suitable CO₂ unit is not already available in SiteView, create a new Unit Category and add ppm as the unit.
For instructions, refer to:
How Do I Create a New Unit in SiteView?
Alternative: Use a Custom Equation
You can also create a Custom Equation if your application requires additional processing.
For a simple 0–5 VDC to 0–3000 ppm conversion, the relationship is:
CO₂ (ppm) = Input Voltage × 600
Equivalent C# code would be:
public double MyCO2Equation(double Input)
{
return (3000 * Input) / 5;
}
However, for a simple linear sensor such as this example, using SiteView’s built-in Linear Equation is generally easier and does not require custom code.
For more information, refer to:
How Do I Create a Linear Equation in SiteView?
https://microedgeinstruments.com/meifaq/?p=102
and
What Is a Custom Equation and When Can It Be Used?
http://microedgeinstruments.com/meifaq/?p=82