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):

  1. Add a device with protocol gpio-analog, pick the gateway, and set:
    • pinNumber (an ADC-capable pin),
    • adcAttenuation to match your input range (0db ≈ up to ~1.1 V … 11db ≈ up to ~3.3 V),
    • sampleIntervalMs.
  2. On the tag, add scaling/offset to convert the raw ADC reading into engineering units (e.g. volts → bar).
  3. Visualize with a gauge and set min/max for nice thresholds.

Pick the smallest attenuation that still covers your signal for the best resolution.