The DS18B20 which was mentioned already is a good match for that. The cable between the sensor and the computer can be up to some tens of meters long if you like having some distance from what you are measuring. And you can attach multiple DS18B20 sensors to the same RPi.At work there are many places where it would be brilliant, to just place some cube and plug it in.
And it would then automatically log the temperature.
Which could then be synced via ssh.
Also I know many people with summer houses whom would love to have such a device.
The data could then be synced to a server and displayed on some website.
But thats extra.
However, there are more DS18B20 knockoffs than authentic sensors out there. See: https://www.hackster.io/news/chris-petr ... cc0a8befc5 Even from reputable vendors, you'll have to ask in advance for them to verify that what they have is the real deal as they do get ripped off too, a lot apparently.
The knockoffs are a problem because they are a lot less accurate (+/- 2°C vs +/- 0.5°C) and lack functionality plus bring other problems, see the link above. Though that missing functionality might not be relevant in a lot of situations the inaccuracy alone can be trouble.
Anyway, a Raspberry Pi Zero 2 W or a Raspberry Pi 3A+ would be a good match since both can run full, general purpose operating systems. That'll get you all kinds of nice things like SSH access, MQTT + TLS, Python, SQLite3, a Web server, etc.
I have some of those sensors (and some unavoidable knockoffs) around here including some connected to a 3A+ which all transmit via MQTT + TLS to a central device which processes the data and makes tables and charts for a local web page served via a LAN address.
Beside the DS18B20, which operates over the 1-wire protocol, you could also look at using an AM2315C or an AHT20 both of which operate over I2C rather than 1-wire.
Instead of wi-fi you could also look at LoRa which will give you much more range. Myself, I'll resume looking into LoRa again in a week or two using a RP2040 board with built-in LoRa and a regular RPi with a LoRa HAT.
Statistics: Posted by tpyo kingg — Fri Mar 14, 2025 8:32 am