Measurements average

I want to read 100 values from an I2C chip. This is supposed to happen as follows.
read value
Write value to the array
read value
Write value to the array
after the 100 measurements, the average should then be formed.
How do I do something like this in node red?

Try a smooth node like this:

[{"id":"a85c2bcf20b7dd3f","type":"smooth","z":"eeb41b0d.50724","name":"","property":"payload","action":"mean","count":"100","round":"0","mult":"single","reduce":false,"x":50,"y":50,"wires":[[]]}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.