Skip to content

fennsen64/moisture-ESP-mcu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

moisture-ESP-mcu

ESP8266/ESP-NodeMCO Moisture-Sensor-Module to MQTT - V1.2 OTA Version

NodeMCU-Based IoT Project: Connecting YL-69 & YL-38 Moisture

  • Additional functions:
  • the intervall value for the sensor read can be adjusted via MQTT publish a new value to this device: ** see INTERVALL_SUB_FEED ** interval at which to read sensor: Default: 60000 ms = 1 min.
    ** updated by publish a Millisecond (ms) numeric value to ../set_sensor_intervall

  • the sensor can be resetted by MQTT publish to this device: see RESET_SUB_FEED ** publish a "1" (numeric) to ../reset_sensor";

What you have to adjust:

  • sensor_pin: if you use an other chip or pin
  • IOT_HOSTNAME: unique name of the ESP chip (normaly the last 4 elements from MAC address WIFI:
  • WLAN_SSID and WLAN_PASS MQTT:
  • AIO_SERVER: the IP address of the MQTT broker host
  • AIO_USERNAME & AIO_KEY (if you use authorisation on the broker)
  • MQTT feeds: all PROGMEM variables which holds the publish topic structure: adjust to your existing hyrarchi OTA (Over The Air Updates)
  • ArduinoOTA.setPassword .... : put your password here if you use authorisation for OTA

Flash with Arduino IDE (ESP / Nodem MCU libraries have to been installed

About

Uses an arduino moisture sensor with ESP (node mcu)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages