Read an analog sensor (ADC)
For a sensor that outputs a varying voltage (potentiometer, 4–20 mA via a shunt, 0–3.3 V probe):
- Add a device with protocol gpio-analog, pick the gateway, and set:
pinNumber(an ADC-capable pin),adcAttenuationto match your input range (0db≈ up to ~1.1 V …11db≈ up to ~3.3 V),sampleIntervalMs.
- On the tag, add scaling/offset to convert the raw ADC reading into engineering units (e.g. volts → bar).
- Visualize with a gauge and set min/max for nice thresholds.
Pick the smallest attenuation that still covers your signal for the best resolution.