> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sophiabarnes.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Watering analysis

> Analyze soil moisture readings from a Jupyter notebook.

<a href="/mintlify-demo/v1.1/watering-analysis.ipynb" download="watering-analysis.ipynb">Download the notebook (.ipynb)</a>

This notebook shows how to analyze **soil moisture** readings from your sensors.

```python theme={null}
readings = [40, 45, 38, 47]
avg = sum(readings) / len(readings)
print(f"Average moisture: {avg}%")
```

```text Output theme={null}
Average moisture: 42.5%
```

## Next steps

* Set a moisture trigger below 35%
* Review the dashboard

```python theme={null}
'water now' if avg < 45 else 'ok'
```

```text Output theme={null}
'water now'
```
