No device connected

Connect your Arduino or ESP32 via USB using the Connect Device button in the top-right navigation bar to start receiving live sensor data.

Soil Moisture
No Data
Temperature
No Data
Humidity
No Data
Soil pH
No Data
Light Intensity
No Data
Water Level
No Data
PIR Sensor
No Data
No device connected — alerts will appear here once your hardware is linked.

Chart data will populate once a device is connected and readings begin coming in.

No device connected

Use the Connect Device button in the top-right navigation bar to link your microcontroller and view live sensor charts.

No device connected

Power and solar data will display once your microcontroller is sending readings. Include battery and solar fields in your JSON output.

No session data yet

Historical readings will be recorded here as soon as a device is connected and data begins streaming in.

Smart. Sustainable. Scalable.

LeafLink is an intelligent IoT system that monitors and preserves plant health by combining multiple environmental sensors, solar-powered hardware, and a clean web dashboard — giving growers real-time insights from anywhere in the world.

By automating environmental monitoring, LeafLink reduces guesswork, prevents over- or under-watering, and promotes healthier plants with lower resource usage.

01
Upload LeafLink Firmware

Flash your Arduino or ESP32 with the LeafLink firmware. The device must output JSON sensor packets over serial.

// Arduino / ESP32 — Minimal Output
void loop() {
  Serial.print("{\"moisture\":");
  Serial.print(analogRead(A0) / 10.24);
  Serial.print(",\"temp\":");
  Serial.print(dht.readTemperature());
  Serial.print(",\"humidity\":");
  Serial.print(dht.readHumidity());
  Serial.print(",\"ph\":");
  Serial.print(readPH());
  Serial.print(",\"light\":");
  Serial.print(lightMeter.readLightLevel());
  Serial.print(",\"water\":");
  Serial.print(getWaterLevel());
  Serial.print(",\"pir\":");
  Serial.print(digitalRead(PIR_PIN));
  // Optional power fields:
  Serial.print(",\"battery\":");
  Serial.print(getBatteryPct());
  Serial.print(",\"solar\":");
  Serial.print(getSolarWatts());
  Serial.println("}");
  delay(2000);
}
02
Use Google Chrome or Microsoft Edge

LeafLink uses the Web Serial API to communicate with your microcontroller directly from the browser. This is only supported in Chrome and Edge (version 89+). Firefox and Safari do not support it.

03
Click "Connect Device" in the Nav Bar

Press the Connect Device button at the top right. Set your baud rate to match the one in your firmware, then click Connect. Your browser will show a port picker — select your device (usually listed as "USB Serial", "CH340", or "CP2102").

04
Live Data Streams In

Once connected, the dashboard populates with real data from your hardware. The nav bar turns green and all sensor cards, charts, and alerts update automatically with each packet received from your device.

Soil Moisture Sensor

Measures volumetric water content using electrical resistance between two probes. Triggers watering alerts when levels fall below the configured threshold.

DHT22 — Temp & Humidity

Capacitive humidity sensor combined with a thermistor. Provides accurate environmental readings every 2 seconds to ensure optimal plant comfort.

pH Sensor

Electrochemical sensor measuring hydrogen ion activity in soil. Optimal plant growth occurs between pH 6.0–7.0; alerts fire outside this range.

BH1750 Light Sensor

Measures ambient light in lux. Helps determine whether plants receive adequate sunlight for photosynthesis and optimal growth cycles.

Ultrasonic Sensor (HC-SR04)

Uses reflected sound waves to measure the distance to the water surface in a reservoir, providing real-time water level percentage readings.

PIR Motion Sensor

Detects infrared radiation changes caused by human or animal movement. Used for proximity security monitoring and interaction event logging.

Sustainability Focus

LeafLink is powered by a solar panel with battery backup, minimizing its carbon footprint. By providing precise sensor data, it reduces water waste — only triggering irrigation when truly needed — supporting eco-conscious plant care at home, in greenhouses, and at scale in agriculture.