Introduction: ESP8266 WiFI Water Leak Sensor
In this tutorial we will show how to build ESP8266 WiFi water leak sensor with ESP8266, Arduino and EasyIoT server. We can also use this sensor as soil moisture sensor or as rain sensor. You can add more different sensor to EasyIoT server (see other my instructables).
See more tutorials at http://iot-playground.com/build
Step 1: Materials
Arduino
Water sensor
ESP8266 module
EasyIoT server (Raspberry Pi or Windows computer)
Step 2: Build Sensor
We connect Arduino and ESP8266 module. If we use 5V Arduino, then we follow connect ESP8266 and 5V Arduino. If we use 3.3V arduino, we follow connect ESP8266 and 3.3V Arduino.
Next we connect Ardino and water sensor. We connect Arduino VCC and GND to water sensor VCC and GND. Arduino digital Pin 2 is connected to digital out pin of water sensor.
After we connect wires we load program to Arduino. Program is available on GitHub ESP8266 Water leak sensor. Don't forget to set server IP, AP and AP username and password in Esp8266EasyIoTConfig.h.
Step 3: Build EasyIoT Server
For EasyIoT server we need RaspberryPi or Windows computer. If we use Raspberry Pi, we can download image link and store to SD card. If we use Windows machine we simply copy server files in folder on Windows computer and execute EasyIoT.exe. Latest EasyIoT server can be found here.
Step 4: Configure EasyIoT Server
Last step is to configure EasyIoT server. We add new sensor to EasyIoT server. In browser we enter IP address of EasyIoT server. Use default username admin and password test. Then we go to Configuration->Drivers->ESP8266 and AddNode. Then we switch on new sensor node. If everything is OK sensor will be added to EasyIoT server. New sensor we add also to group to see on front page.