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.
Everything you need to build smart farming solutions with professional-grade soil monitoring.
Get all 10 soil parameters with a single function call. No complex Modbus setup or CRC calculations required.
Monitor moisture, temperature, pH, EC, NPK nutrients, salinity, TDS, and fertility all at once.
Works seamlessly with ESP32, ESP8266, and Arduino boards. RS485 communication handled automatically.
Built for modern agriculture. Easily integrate with MQTT, REST APIs, and cloud platforms.
Comprehensive documentation with examples, wiring diagrams, and best practices for every use case.
Automatic error handling, timeout management, and CRC validation for production-ready deployments.
Professional-grade measurements for complete soil analysis.
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); }
See how TerraSoil transforms agriculture across industries.
Precise pH and moisture control for tomatoes, peppers, and leafy greens. Automated environmental management.
Multi-zone sensor deployment with cloud connectivity. Real-time monitoring and automated irrigation.
Perfect for agricultural research, student projects, and university labs. Complete documentation included.
Student & IoT Developer at Beijing Institute of Technology
The power of ESP32-S3 for smart and connected agriculture
Dual-core Xtensa LX7 up to 240MHz
WiFi 2.4GHz, Bluetooth 5.0, LoRa
Plug & Play battery and solar panel with smart energy management for several months of autonomy
Native support for 10-in-1 NPK sensor
The ESP32-S3 runs AI models directly on the board for real-time analysis. Plug & Play System with smart energy management:
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.
All design files are available on GitHub under open source license.
Detailed guides for assembly, programming, and deployment.
Join our community for support and regular updates.
Download TerraSoil today and revolutionize your agricultural projects with precision soil monitoring.