OneWire incorrect temperatures

My program read 8 DS18B20 temperature sensors with OneWireSpark.
Sometimes I get incorrect temperatures (red squares on image).

Here is my code
Why is this happening?

What If you try using spark-dallas-temperature?

This post might help:

You may want to add a CRC check on the scratchpad data too before using the data.

1 Like

That did the trick. Thanks.
I recommend to include this tip to Particle official OneWire library.
It would save me a day of figuring out.

1 Like