Skip to content

A template for posting soil moisture readings, temp, and humidity to an InfluxDB database, so the readings can be graphed on Grafana, using an ESP32 microcontroller, capacitive moisture sensors, and DHT22 sensor.

Notifications You must be signed in to change notification settings

cody-barker/soil_moisture_temp_humidity_sensors-archived

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Soil Moisture, Temp and Humidity Sensors

Send soil moisture, temp, and humidity readings to an InfluxDB database, so that you can visualize them with your own Grafana dashboard.

The inspiration and initial InfuxDB/WiFi configuration code is adapted from Michael Klements. I introduced the ability to handle a variable number of moisture sensors, made use of the ESP32's deep sleep feature to conserve power, added a sensor calibration file, along with numerous comments to assist users.

grafana-dashboard-preview

Check out this video from Michael Klements for help setting up the InfluxDB database, and configuring the Grafana dashboard.

The ino files are written in C++/arduino.

Calibrating Sensors

Use calibrate_sensors.ino to determine the DryValue and WetValue for your sensors. I have provided my default values in sensors.ino, but you should use calibrate_sensors.ino to test your own.

To determine your WetValue, submerge the sensor up to the exposed electronic components. You may choose to cover the exposed components in silicon to protect them from moisture.

To determine your DryValue, wipe the sensor with a dry towel to ensure it is as dry as possible.

Use these values when setting up sensors.ino.

Libraries

Use the Arduino IDE Library Manager to install all of the libraries listed in sensors.ino.

Hardware

- ESP32 WROOOM Development Board
- High-quality capacitive soil moisture sensors
- A DHT22 Digital Temp and Humidity Sensor
- a breadboard
- Jumper wires
-Micro USB cable and wall charger or rechargable battery pack

For Contributors

If you'd like to contribute to this project, email me at codybarker.or@gmail.com

Project Status

Unlicensed

Authors

-Cody Barker
-Credit due to Michael Klements for much of the initial DB/WiFi configuration

About

A template for posting soil moisture readings, temp, and humidity to an InfluxDB database, so the readings can be graphed on Grafana, using an ESP32 microcontroller, capacitive moisture sensors, and DHT22 sensor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages