EmonPi Temperature Measurement

No I don’t mind. That’s totally fine. I’ve moved this thread to the emonPi forum.

Very true, ‘0’ is not a good error value for a temp sensor!

Yup, I remember that.

Maybe the learn page: Temperature Sensing Using DS18B20 Digital Sensors — OpenEnergyMonitor 0.0.1 documentation and or as a comment in the sketch.

That sounds good. I would be happy to use this as a convention.

Mmm I would be tempted to ignore 85 deg C as this is very much withing the possible reading range of a DS18B20 and may cause false negatives.

Are DS18B20 sensors errors a big issue? Once up and running I can’t think of any systems that I’ve been involved in that throw errors. I agree it’s best to handle all errors in the best way we can. The most important thing I think is to better handle ‘no sensor connected’ by returning 300 as returning ‘0’ is not good.

I don’t have time this week to work on adding this into the FW. I would gladly accept a PR if anyone fancies.

Agree, over 300 deg C is a niche use case and not worth considering. DS18B20 is max 125 deg C usable.

We got our SMT32 up and running today using an emontx shield. Very easy to upload to using PlatformIO or Arduino IDE. This is a topic for a different conversation!