Documentation
Float Sensor (Pi)
A liquid float level switch for determining water levels with configurable percent and critical thresholds.
Overview
A float level switch is used to determine a liquid water level. Typically you will use them for fill/stop sensors. You can also use several to determine intermittent water levels of a single container. This is why there is a percent option to correlate the sensor with a liquid level it represents.
The float sensor will return a reading of 0 or 1. Based on your circuit setup this could mean the liquid level is now at the set level or past it.
Configuration
{
"sensors": [
{
"pin": 17,
"type": "Float",
"percent": 75,
"critical": false,
"name": "Reservoir Level"
}
]
}
Settings
| Property | Value | Description |
|---|---|---|
type |
Float |
Sensor type identifier |
percent |
0–100 |
Water level percentage this sensor represents |
critical |
true / false |
Whether this level is a critical threshold |
Returns
Boolean — 0 or 1 indicating whether the liquid has reached the sensor level.
Tip
Use multiple float sensors at different heights in the same container, each with a different percent value, to track water levels more precisely.