SensorRig

SQLite vs RRDtool for Sensor Logging on Raspberry Pi

14 August 2026 · 1 min read

Hardware used in this build

  • Raspberry Pi 4 — 1-Wire master + villa collector
    Used in the running shed build; works reliably.
  • Raspberry Pi 5 (16GB) — Always-on host: serves this site + runs the agent
    The always-on host for SensorRig. I run the 16GB board, but the Pi 5 is currently sold out — the Pi 4 4GB (linked) is plenty for DAQ work and this site.
  • RRDtool — Legacy round-robin time-series database
    Solid for fixed-retention rollups; migration to SQLite/WAL is the modern path. Keep running until replacement proves itself.

Full parts list & affiliate disclosure →

This guide is generated from data/guides.json and data/parts.json. Don’t edit by hand — edit the data.

Comparison

PartRoleInterfaceVerdictPrice
Raspberry Pi 41-Wire master + villa collectordtoverlay=w1-gpio; SQLite timeseries.dbyes—
Used in the running shed build; works reliably.
Raspberry Pi 5 (16GB)Always-on host: serves this site + runs the agent—yes (buy the 8GB; I run the 16GB)—
The always-on host for SensorRig. I run the 16GB board, but the Pi 5 is currently sold out — the Pi 4 4GB (linked) is plenty for DAQ work and this site.
RRDtoolLegacy round-robin time-series databaserrdtool CLI + Python rrdtool bindingsconditional—
Solid for fixed-retention rollups; migration to SQLite/WAL is the modern path. Keep running until replacement proves itself.

Verdict

Pick the part that matches your interface and accuracy needs. If you need humidity, prefer BME280 over BMP180. For long 1-Wire runs, DS18B20 is the most robust choice.


Disclosure: SensorRig is reader-supported. Some links may be affiliate links; if you buy through them I may earn a commission at no extra cost to you.

Related reading