The 7-in-1 soil sensor NPK + PH + Conductivity + Temperature and Humidity COM12

Fr180,000

Soil EC water temperature PH nitrogen, phosphorus and potassium seven-in-one sensor is suitable for measuring soil temperature, moisture, total salt content (conductivity), soil PH, and nitrogen, phosphorus and potassium.

In stock

SKU: SEN24734 Category:

Description

Soil EC water temperature PH nitrogen, phosphorus and potassium seven-in-one sensor is suitable for measuring soil temperature, moisture, total salt content (conductivity), soil PH, and nitrogen, phosphorus and potassium. This Soil 7-in-1 sensors creatively measure conductivity, moisture, temperature, ph, nitrogen, phosphorus and potassium parameters together, greatly facilitating the customer system to assess the soil situation. Compared with the original high precision sensor in Germany and the actual drying weighing method of soil, the sensor has high precision, fast response and stable output: it is less affected by the salt content of soil and is suitable for all kinds of soil quality. Can be buried in the soil for along time, resistance to long-term electrolysis, corrosion resistance, vacuum filling, completely waterproof.

5-in-1 soil sensor

Here are some additional benefits of using a 7-in-1 soil sensor:

  • It can help you identify nutrient deficiencies in your plants early on, so you can take corrective action before the plants start to suffer.
  • It can help you optimize your irrigation schedule, so you don’t overwater or underwater your plants.
  • It can help you choose the right fertilizer for your plants, so you don’t waste money on unnecessary nutrients.
  • It can help you monitor the health of your soil over time, so you can make changes as needed to improve its quality.

7-in-1 soil sensor Features:

  1. Protection performance:Epoxy resin can be packed in high-temperature vacuum, which can prevent moisture from entering the inside of the fuselage, and the sealing performance is better.
  2. IP68 waterproof and dustproof:In addition to the combination part, we also do waterproof and dustproof treatment to the entire body to ensure the long-term operation of the components.
  3. Sensitive chip for metal probe:The probe is resistant to rust, electrolysis, and salt-alkali corrosion, ensuring long-term operation of the probe part, suitable for various soils, low power consumption, high sensitivity, and stable signal.
5-in-1 soil sensor

Monitoring parameters:

  1. Soil temperature detection: Easy to understand.Soil temperature determines the living environment of the plant to create a standard greenhouse for your soil.
  2. Soil pH test: Accurate control, Soil pH affects plant growth and protects your soil acid-base balance.
  3. Soil NPK detection: Test at any time, Soil NPK is an important nutrient element for plant growth and promotes plant growth.
  4. Soil conductivity test: Rational planting, Soil conductivity reflects soil salinity and affects soil nutrient conversion and effectiveness.
  5. Soil moisture detection: Easy to understand. Soil moisture determines the living environment of the plant to create a standard greenhouse for your soil.
soil sensor

Hardware required

Connecting the Hardware

Connect all the required components as shown in the below schematic diagram to interface Soil Integrated sensor with Arduino Uno through MAX485 to display the Soil concentration values on Serial Monitor

Connect the R0 & DI pin of from the Modbus to D2 & D3 Arduino using Software Serial. Similarly, we have to enable DE & RE high. To do this connect the DE & RE Pins to the D7 & D8 pin of Arduino. The Integrated Sensor has 4 wires. The brown one is VCC which needs a 9V-24V Power Supply. The GND pin which is black in color. So connect it to the GND of Arduino. The Blue wire which is the B pin is connected to the B pin of MAX485 & the Yellow Wire which is the A pin is connected to the A pin of MAX485.

Note: RO to pin 8 & DI to pin 9 when using AltSoftSerial

 

  • Pin Connections :
    • RO (Receive Output)                     <=>           Arduino digital pin 2
    • DI (Data Input) to                          <=>          Arduino digital pin 3
    • DE (Driver Enable)                        <=>          Arduino digital pin 7
    • RE (Receive Enable, active low)  <=>          Arduino digital pin 6
  • 7-In-1 Sensor connection
    • Yellow                                   <=>           A
    • Blue                                       <=>           B
    • Brown                                   <=>           12V [Check the sensor Input volts]
    • Black                                     <=>           GND

Upload the Code

#include <SoftwareSerial.h>
// RS485 Connections
const byte ROPin = 2;
const byte DIPin = 3;
const byte DE = 6;
const byte RE = 7;
SoftwareSerial max485Serial(ROPin, DIPin);
const byte temp[] = { 0x01, 0x03, 0x00, 0x13, 0x00, 0x01, 0x75, 0xcf };
const byte mois[] = { 0x01, 0x03, 0x00, 0x12, 0x00, 0x01, 0x24, 0x0F };
const byte econ[] = { 0x01, 0x03, 0x00, 0x15, 0x00, 0x01, 0x95, 0xce };
const byte ph[] = { 0x01, 0x03, 0x00, 0x06, 0x00, 0x01, 0x64, 0x0b };
const byte nitro[] = { 0x01, 0x03, 0x00, 0x1E, 0x00, 0x01, 0xE4, 0x0C };
const byte phos[] = { 0x01, 0x03, 0x00, 0x1f, 0x00, 0x01, 0xb5, 0xcc };
const byte pota[] = { 0x01, 0x03, 0x00, 0x20, 0x00, 0x01, 0x85, 0xc0 };
byte values[11];
float envhumidity = 0.0, envtemperature = 0.0, soil_ph = 0.0, soil_mois = 0.0, soil_temp = 0.0;
byte val1 = 0, val2 = 0, val3 = 0, val4 = 0, val5 = 0, val6 = 0, val7 = 0;
void setup() {
  Serial.begin(9600);
  max485Serial.begin(9600);
  pinMode(RE, OUTPUT);
  pinMode(DE, OUTPUT);
  digitalWrite(DE, LOW);
  digitalWrite(RE, LOW);
  delay(3000);
}
void loop() {
  val1 = moisture();
  soil_mois = val1 / 10.0;
  delay(1000);
  soil_temp = temperature() / 10.0;
  delay(1000);
  val3 = econduc();
  delay(1000);
  val4 = phydrogen() / 10.0;
  soil_ph = val4;
  delay(1000);
  val5 = nitrogen();
  delay(1000);
  val6 = phosphorous();
  delay(1000);
  val7 = potassium();
  delay(1000);
  printSensorData();
  delay(3000);
}
void printSensorData() {
  Serial.print(“Moisture: “);
  Serial.print(soil_mois);
  Serial.println(” %”);
  delay(1000);
  Serial.print(“Temperature: “);
  Serial.print(soil_temp);
  Serial.println(” C”);
  delay(1000);
  Serial.print(“EC: “);
  Serial.print(val3);
  Serial.println(” us/cm”);
  delay(1000);
  Serial.print(“ph: “);
  Serial.print(soil_ph);
  Serial.println(” ph”);
  delay(1000);
  Serial.print(“Nitrogen: “);
  Serial.print(val5);
  Serial.println(” mg/kg”);
  delay(1000);
  Serial.print(“Phosphorous: “);
  Serial.print(val6);
  Serial.println(” mg/kg”);
  delay(1000);
  Serial.print(“Potassium: “);
  Serial.print(val7);
  Serial.println(” mg/kg”);
  Serial.println();
}
byte readSensorData(const byte *command, byte length) {
  clearReceiveBuffer();
  digitalWrite(DE, HIGH);
  digitalWrite(RE, HIGH);
  delay(1);
  for (uint8_t i = 0; i < length; i++) max485Serial.write(command[i]);
  max485Serial.flush();
  digitalWrite(DE, LOW);
  digitalWrite(RE, LOW);
  delay(200);
  byte bytesRead = 0;
  while (max485Serial.available() && bytesRead < 7) {
    values[bytesRead++] = max485Serial.read();
  }
  return bytesRead == 7 ? values[4] : 0;
}
void clearReceiveBuffer() {
  while (max485Serial.available()) max485Serial.read();
}
byte moisture() {
  return readSensorData(mois, sizeof(mois));
}
byte temperature() {
  return readSensorData(temp, sizeof(temp));
}
byte econduc() {
  return readSensorData(econ, sizeof(econ));
}
byte phydrogen() {
  return readSensorData(ph, sizeof(ph));
}
byte nitrogen() {
  return readSensorData(nitro, sizeof(nitro));
}
byte phosphorous() {
  return readSensorData(phos, sizeof(phos));
}
byte potassium() {
  return readSensorData(pota, sizeof(pota));
}

Upload the codes to your board. Make sure you selected the right port and board.

Package includes
1 x Soil 7 in 1 Integrated Sensor

Reviews

There are no reviews yet.

Be the first to review “The 7-in-1 soil sensor NPK + PH + Conductivity + Temperature and Humidity COM12”