Template: Moisture Sensor Arduino Guide

From Waveshare Wiki
Revision as of 07:23, 9 October 2021 by Waveshare-eng11 (talk | contribs) (Created page with "The examples provided are based on the Arduino UNO, if you need to use other Arduino boards, please check if the board is compatible with the UNO. ==Hardware connection== Fi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The examples provided are based on the Arduino UNO, if you need to use other Arduino boards, please check if the board is compatible with the UNO.

Hardware connection

Hardware connection-Arduino
Connect to Arduino UNO
Moisture Arduino Description
VCC 5V Power input
GND GND Ground
AOUT A0 Analog data output

Examples

  • Please download and install Arduino IDE to your PC.
  • Download the demo codes, unzip and find the Arduino examples
  • Open the Moisture_Senso.ino file by the Arduino IDE
  • Build and upload the codes to the UNO board
  • After uploading, you can open the Serial Monitor of IDE and check the data

Expected result

Insert the sensor into the soil and gradually add water to the soil. The output data of the serial port changes accordingly