Smart Agriculture Starts Here

TerraSoil is your Arduino library for the SN-300 10-in-1 NPK Soil Sensor. Monitor moisture, temperature, pH, NPK, and more with a single line of code.

10 Parameters
1 Line of Code
30% Water Saved
📡

Live Sensor Data

SN-300 NPK Sensor
💧
45.2%
Moisture
🌡️
23.5°C
Temperature
🧪
6.8
pH Level
850
EC (µS/cm)
🔴
125
Nitrogen
🟠
85
Phosphorus

Precision Agriculture Made Simple

Everything you need to build smart farming solutions with professional-grade soil monitoring.

TerraSoil Sensor

One-Line Reading

Get all 10 soil parameters with a single function call. No complex Modbus setup or CRC calculations required.

📊

Complete Data

Monitor moisture, temperature, pH, EC, NPK nutrients, salinity, TDS, and fertility all at once.

🔌

Easy Integration

Works seamlessly with ESP32, ESP8266, and Arduino boards. RS485 communication handled automatically.

🌐

IoT Ready

Built for modern agriculture. Easily integrate with MQTT, REST APIs, and cloud platforms.

📚

Well Documented

Comprehensive documentation with examples, wiring diagrams, and best practices for every use case.

🛡️

Reliable & Robust

Automatic error handling, timeout management, and CRC validation for production-ready deployments.

Measured Parameters

Professional-grade measurements for complete soil analysis.

💧
Moisture
0-100%
🌡️
Temperature
-40 to 80°C
EC
0-20000 µS/cm
🧪
pH
3-9 pH
🔴
Nitrogen
0-2999 mg/kg
🟠
Phosphorus
0-2999 mg/kg
🟡
Potassium
0-2999 mg/kg
🧂
Salinity
0-20000 index
💎
TDS
0-10000 mg/L
🌾
Fertility
0-3000 mg/kg

Simple, Powerful Code

Get started in minutes with our intuitive API.

#include <TerraSoil.h>

HardwareSerial RS485Serial(1);
TerraSoil sensor(&RS485Serial, 1);
TerraSoilData data;

void setup() {
  Serial.begin(115200);
  sensor.begin(44, 43, 4800);
}

void loop() {
  if (sensor.readSensor(data)) {
    Serial.printf("Moisture: %.1f%%\n", data.moisture);
    Serial.printf("Temp: %.1f°C\n", data.temperature);
    Serial.printf("pH: %.1f\n", data.ph);
  }
  delay(5000);
}

Real-World Applications

See how TerraSoil transforms agriculture across industries.

🍅

Greenhouse Cultivation

Precise pH and moisture control for tomatoes, peppers, and leafy greens. Automated environmental management.

+35%
Yield
-40%
Water Use
🌾

Smart Farms

Multi-zone sensor deployment with cloud connectivity. Real-time monitoring and automated irrigation.

20+
Sensors
1-2yr
ROI
🔬

Research & Education

Perfect for agricultural research, student projects, and university labs. Complete documentation included.

~$50
Setup Cost
5min
Quick Start

Meet the Developer

👨‍💻

Kennedy KITOKO MUYUNGA

Student & IoT Developer at Beijing Institute of Technology

B.Eng. Mechatronic (3rd Year)
Beijing Institute of Technology
+86 131 2698 0849
kitokokennedy13@gmail.com

TERRA AI V2 Development Board

The power of ESP32-S3 for smart and connected agriculture

Carte TerraSoil ESP32-S3
View on GitHub

Key Features

ESP32-S3

Dual-core Xtensa LX7 up to 240MHz

Triple Connectivity

WiFi 2.4GHz, Bluetooth 5.0, LoRa

Advanced Power Management

Plug & Play battery and solar panel with smart energy management for several months of autonomy

Integrated RS485

Native support for 10-in-1 NPK sensor

Embedded AI & Power Management

The ESP32-S3 runs AI models directly on the board for real-time analysis. Plug & Play System with smart energy management:

  • Automatic charging via integrated solar panel
  • Smart LiPo/LiFePO4 battery management
  • Ultra-low power deep sleep mode (a few µA)
  • Several months of autonomy on a single charge
  • Protection against overvoltage and deep discharge

Goal: Plug & Play Smart Agriculture

The TerraSoil board is designed for precision agriculture with no energy worries. Its intelligent energy management system provides several months of autonomy, with plug & play support for battery and solar panel. The combination of ESP32-S3 and our energy optimization algorithms ensures maximum performance with minimal consumption.

Open Source

All design files are available on GitHub under open source license.

Documentation Complète

Detailed guides for assembly, programming, and deployment.

Communauté Active

Join our community for support and regular updates.

Ready to Grow Smarter?

Download TerraSoil today and revolutionize your agricultural projects with precision soil monitoring.