Use simultaneous valid red and clear readings and assume 2,000 clear counts in each worked case. Dividing red by clear produces a dimensionless ratio. It is a relative signal descriptor, not a calibrated colour coordinate. With red-channel counts at 750, the worked result is 0.375 on the red-to-clear ratio at 2,000 clear counts scale.

The recorded quantity and the calculated result

Keep three columns in a commissioning export: the original red-channel counts, the configuration used in the conversion and the resulting red-to-clear ratio at 2,000 clear counts. Recompute the result for the lower, middle and upper worked points before interpreting a field difference. A change in range, units or representation can otherwise be mistaken for a change in the process.

Two points to check independently

Take the neighbouring worked points 500 and 750 on the input axis. The results are 0.25 and 0.375, giving a signed difference of 0.125. The table preserves the calculated values before display rounding. These are calculated examples under the stated assumptions. They are not readings from a ProSense installation.

Clear-normalised colour sensor readings. Red-channel counts changes from 100 to 1,900 and the calculated Red-to-clear ratio at 2,000 clear counts changes from 0.05 to 0.95.
Clear-normalised colour sensor readings. Red-channel counts changes from 100 to 1,900 and the calculated Red-to-clear ratio at 2,000 clear counts changes from 0.05 to 0.95. Figure by Industry Applied.

Worked data

Red-channel counts

Red-to-clear ratio at 2,000 clear counts

100

0.05

250

0.125

500

0.25

750

0.375

1000

0.5

1500

0.75

1900

0.95

Checking the ends of the working range

The final interval in this example runs from 750 to 1,900 on the red-channel counts axis. Its average change in red-to-clear ratio at 2,000 clear counts per input unit is 0.0005. This is a two-point slope for that interval. To check a spreadsheet or a gateway calculation, enter 1,900 in a separate test row and compare its result against 0.95 at the displayed precision.

Installation and interpretation

Check integration time, gain, saturation and the illumination spectrum. A near-zero clear reading makes a ratio unstable. Keep all four original channel readings so that a shift can be traced either to exposure or to the target colour.

For a repeatable verification, capture a small known case and a second case well away from it. Check whether the difference follows the response in the table, then restore the working configuration and repeat one reading. Store a separate status field for missing or invalid input. Substituting zero would make a dropped observation indistinguishable from a legitimate numerical zero.

Implementation and worked data

The source implementation is maintained in the .NET IoT device project. Download the worked numerical example.