Surilli
Published © LGPL

Interfacing Soil Moisture Sensor with Surilli Basic M0

Measuring the volumetric content of water inside the soil and giving moisture level as the output.

BeginnerFull instructions provided45 minutes699
Interfacing Soil Moisture Sensor with Surilli Basic M0

Things used in this project

Hardware components

Surilli Basic
Surilli Basic
×1
SparkFun Soil Moisture Sensor (with Screw Terminals)
SparkFun Soil Moisture Sensor (with Screw Terminals)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
FC-28 Hygrometer Module
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Interfacing Soil Moisture Sensor with Surilli Basic M0

Code

Soil_Sensor

C/C++
int sensor_pin = A0;
int output_value;

void setup() {
  SerialUSB.begin(9600);
  SerialUSB.println("Reading From the Sensor ...");
  delay(2000);
  }
  
void loop() {
  output_value= analogRead(sensor_pin);
  output_value = map(output_value,550,0,0,100);
  SerialUSB.print("Moisture : ");
  SerialUSB.print(output_value);
  SerialUSB.println("%");
  delay(1000);
  }

Credits

Surilli

Surilli

196 projects • 62 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments