Overview

Temperature is one of the most fundamental drivers of ecological processes. It governs ectotherm activity, plant growth rates, invertebrate development, and decomposition. In microhabitat studies, even small thermal gradients — between sun and shade, canopy and ground, water and air — can explain species distributions.

sensor-w1therm reads 1-Wire temperature sensors via the Linux kernel w1_therm driver. The 1-Wire bus allows multiple probes to share a single GPIO pin, making it ideal for deploying several temperature sensors at different heights, depths, or orientations from a single monitoring node.

Supported Sensors

Installation

Enable the 1-Wire interface and install:

sudo sensor-w1therm enable # adds w1-gpio overlay, reboot required # Or build from source: make sudo make install

Usage

sensor-w1therm # read all connected probes sensor-w1therm internal # internal sensors only sensor-w1therm external # external sensors only sensor-w1therm setup # configure for fast reading sensor-w1therm list # list supported measurements

Example Output

[ {"sensor":"ds18b20","measures":"temperature","unit":"Celsius","sensor_id":"28-0123456789ab","value":23.500} ]

Ecological Applications

Source Code

sensor-w1therm on GitHub →