Well, it’s a “little” more involved than just calling OneWire::crc8.
Skim through this,
Let me know if you have any questions.
I think OneWire::crc8 is the best solution. A more simple solution would be to test for temperature outliers. You’re reading the temperature every five seconds. I’m not sure how much the temperature of a cold chamber can change in five seconds, but let’s assume the most recent temperature sample indicates it changed by 10 degrees. That’s a pretty good indication the temperature sample is invalid. Just re-read it. You could experiment with smaller deltas.
Again, I vote for OneWire::crc8. If you find it too involved, try the outlier method.