A battery thermometer on the balcony, a rain gauge that talks only to its own display, a soil probe that came with a weather station: many of them already broadcast on the unlicensed 433.92 MHz band. You do not need the vendor hub. A USB software-defined radio (SDR) stick based on the Realtek RTL2832, plus the open-source program rtl_433, turns those packets into JSON and can push them straight to an MQTT broker.
This guide covers what hardware works, how to get the stick claimed by Linux instead of the DVB TV driver, how to listen and filter for your sensors, and how to publish clean MQTT topics you can use from any automation stack.
What rtl_433 is (and is not)
rtl_433 is a generic data receiver for ISM bands, mainly 433.92 MHz, 868 MHz, 315 MHz, 345 MHz and 915 MHz. The official documentation describes it as working with RTL-SDR dongles and with SoapySDR devices such as LimeSDR, PlutoSDR and HackRF One. It is not a 1-bit OOK "antenna on a GPIO pin" receiver, and it does not support chips like the CC1101 as an input. You need a real SDR front end.
It ships with more than two hundred device decoders. That list is the deal-breaker before you buy anything: look up the model printed on the sensor, check the supported-devices list on the rtl_433 site, and note the frequency. If your exact protocol is missing, the stick will still hear RF noise, but you will not get a decoded temperature.
Hardware you need
- An RTL2832-based USB stick. The widely sold RTL-SDR Blog V3 and V4 dongles are fine; so are many cheap DVB-T sticks that use the same chip. Prefer one with an SMA antenna connector so you can put a proper whip outdoors or in a window.
- A short USB extension cable. The stick runs warm, and the antenna works better away from the Pi's metal case and Wi-Fi radio.
- A computer that can run Linux. A Raspberry Pi is the usual choice for a always-on listener; any spare x86 box works the same way.
- An MQTT broker on the LAN (Mosquitto is enough). You already need one for many local IoT setups.
Put the antenna near a window facing the sensors. A stick buried in a metal server rack will decode almost nothing.
Free the stick from the DVB driver
On Raspberry Pi OS and most Debian-based systems, the kernel grabs the stick as a digital TV tuner. You have to blacklist those modules so rtl_433 can open the device.
Create /etc/modprobe.d/blacklist-rtl-sdr.conf with:
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
Install the RTL-SDR tools and udev rules (package names vary slightly by distribution; on Raspberry Pi OS you typically install rtl-sdr and rtl-433 from apt, or build rtl_433 from the merbanan/rtl_433 repository). Reboot, plug the stick in, then check:
rtl_test -t
You want a short run that finds the tuner, not an error about claiming the USB interface. If you still see usb_claim_interface failures, the blacklist did not take effect or another process already holds the stick.
First listen: prove you can decode something
With the stick free, run:
rtl_433 -f 433.92M
The default center frequency is already 433.92 MHz; stating it keeps the command explicit. Leave it running for a few minutes. When a supported sensor transmits, the console prints a key-value block with model, id, channel, battery state, temperature and whatever else that protocol carries.
If nothing appears:
- Confirm the sensor battery is good and that you are within a few tens of metres outdoors, or a couple of rooms indoors.
- Try
-vvso failed decode attempts show up; silence often means you are not hearing the transmitter, not that the software is hung. - Use
-Awith-R 0to analyze pulses without decoders, which helps when you are chasing an unsupported protocol. - Check the frequency. Many European outdoor sensors sit on 433.92 MHz; some US weather stations use 915 MHz (
-f 915M). Some door sensors and weather kits use 868 MHz.
The official operation guide notes that sitting the tuner exactly on the transmitter frequency can make the DC spike hard to see when analyzing; a small offset of 10-50 kHz can help for analysis. For normal decoding, the default is fine.
Limit the noise from the neighbourhood
An SDR hears every compatible transmitter in range: your porch sensor, the neighbour's station, a cheap doorbell. That is useful during the first listen and annoying once you publish to MQTT.
List protocols with rtl_433 -R help, note the number for your sensor, then enable only that protocol:
rtl_433 -f 433.92M -R 19
(Replace 19 with the protocol number for your model. The example number is illustrative; look yours up.) Negative numbers disable a protocol while keeping the defaults. You can pass -R several times.
Also note the id and channel fields in the decode. Those identify one physical sensor among several of the same model.
Publish to MQTT
rtl_433 can talk to a broker directly. A practical starting command:
rtl_433 -f 433.92M -R 19 -F "mqtt://192.168.1.10:1883,user=sensors,pass=SECRET,retain=0,devices=rtl_433[/model][/id]"
What that does, according to the project docs:
- Connects to the broker at the given host and port.
- Sets MQTT username and password.
- Leaves retained messages off (
retain=0) so stale readings do not stick after a sensor dies. - Uses the
devicesformat, which expands tokens such as[/model]and[/id]into nested topics.
Other MQTT formats available in the same -F string are events (JSON event stream), states and availability. The default base topic is rtl_433/<hostname>/ unless you override it. For TLS, the docs show mqtts:// with tls_cert, tls_key and tls_ca_cert paths.
Subscribe to check:
mosquitto_sub -h 192.168.1.10 -u sensors -P SECRET -t 'rtl_433/#' -v
You should see topics for temperature, humidity, battery and so on under each device path.
If you prefer to keep rtl_433 simple and pipe JSON yourself:
rtl_433 -f 433.92M -R 19 -F json -M utc | mosquitto_pub -h 192.168.1.10 -t home/rtl_433 -l
Built-in MQTT is usually clearer once you settle on topic names.
Keep it running
For a permanent listener, wrap the command in a systemd service or a small Docker container that passes the USB device through. Essentials:
- One process per stick. The docs warn that each instance needs a distinct input; do not let two services fight over
/dev/bus/usb/.... - If you have two sticks, set serial numbers with
rtl_eepromand select them with-d :SERIAL. - Restart policy
on-failure, and log to journald so you can see when the stick disconnects. - A USB extension and decent airflow; cheap sticks throttle or drop samples when they overheat.
Config files are optional but handy. rtl_433 reads rtl_433.conf from the current directory, $HOME/.config/rtl_433/, /usr/local/etc/rtl_433/ or /etc/rtl_433/. An example file ships with the project. Put frequency, protocol filters and the MQTT -F line there so the service unit stays short.
Units and metadata
Use -C si if you want Fahrenheit fields converted to Celsius and similar SI conversions. -C customary goes the other way. -M level adds RSSI and SNR, which helps when you are placing the antenna. -M time:utc keeps timestamps comparable across machines.
What this setup will not do
- It will not invent support for an unsupported protocol. Flex decoders (
-X) exist for advanced users who know the modulation timings; they are outside this guide. - It will not replace Zigbee or Matter for two-way devices. These 433 MHz sensors are almost always one-way, low-power transmitters.
- It is not a substitute for encrypted links. Anyone nearby with another SDR can hear the same cleartext packets. Treat the readings as convenience data, not a security boundary.