Definition: sensor(idx) — Allowed: numeric expression index; Not allowed: string index.
Reads a sensor channel provided by the host (1-based index in scripts, application-specific meaning). Returns an integer.
flow_rate = sensor(1);
logn("Flow: ", flow_rate);