Sensors are the data sources for AgroPulse. Each sensor belongs to a greenhouse and reports readings that the Dashboard, crop profiles, and automation rules act on. Actuators are output devices—pumps, fans, LEDs, and similar—that automation rules can activate or deactivate in response to sensor conditions. The Sensors page polls the backend every 15 seconds and pauses polling when the browser tab is hidden.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/diarpicu2022-commits/frontend-AgroPulse/llms.txt
Use this file to discover all available pages before exploring further.
- Sensors
- Actuators
Sensor types
| Type | Unit | Description |
|---|---|---|
TEMPERATURE | °C | General air temperature |
TEMPERATURE_INTERNAL | °C | Interior air temperature (inside the greenhouse) |
TEMPERATURE_EXTERNAL | °C | Exterior air temperature (outside the greenhouse) |
HUMIDITY | % | Interior relative humidity |
HUMIDITY_EXTERNAL | % | Exterior relative humidity |
SOIL_MOISTURE | % | Volumetric soil moisture |
LIGHT | lx | Illuminance |
CO2 | ppm | Carbon dioxide concentration |
PRESSURE | hPa | Atmospheric pressure |
Supported protocols
| Protocol | Typical hardware |
|---|---|
DHT22 | DHT22 temperature/humidity module |
DHT11 | DHT11 temperature/humidity module |
ADC | Analog-to-digital converter (ESP32 internal) |
ANALOG | Generic analog signal |
I2C | I²C bus devices (BMP280, SHT31, etc.) |
DIGITAL | Digital GPIO input |
ONE_WIRE | 1-Wire bus devices (DS18B20, etc.) |
Adding a sensor
Fill in the sensor details
| Field | Required | Notes |
|---|---|---|
| Name | Yes | Descriptive label shown on sensor cards |
| Type | Yes | Select from the sensor types above |
| Protocol | Yes | Communication protocol used by the hardware |
| GPIO pin | No | The ESP32 GPIO number the sensor is wired to |
| Greenhouse | No | Assigns the sensor to a specific greenhouse |
| Location | No | Optional free-text location within the greenhouse |
Sensors can also be added directly from the Device tab of a greenhouse card. That flow pre-selects the correct greenhouse and shows only the GPIO pins not already in use.
Alert thresholds
Each sensor has an optional threshold configuration that controls when the backend raises an alert for anomalous readings.| Field | Default | Description |
|---|---|---|
| Min value | — | Alert when the reading falls below this value |
| Max value | — | Alert when the reading exceeds this value |
| No-data minutes | 10 | Alert when no reading has arrived for this many minutes |
| Stuck minutes | 30 | Alert when the reading has not changed for this many minutes |
| Spike percent | 50 | Alert when a reading jumps by more than this percentage from the previous value |