loading

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.

<p>Why do you need Arduino and why do you use the digital output of your water leak modul? You could get a quantitative measure by connecting the analoge to A0, as far as I understnd the hardware and if you really just want it digital you could have connected the output of the water leak modul to the GPIO pin of the ESP-01 and just use the ESP-01 without Arduino. And if you use a different ESP modul e.g. ESP-07 then you could have used its analoge pin as well...</p><p>I will try to implement this, but I would appreciate it if you would tell me if you know a reason why that should not work, so I can adjust my plans.</p>
<p>Here you have more sensors with or without Arduino</p><p><br><a href="http://iot-playground.com/build" rel="nofollow">http://iot-playground.com/build</a></p>
<p>Here you have more sensors with or without Arduino</p><p><br><a href="http://iot-playground.com/build" rel="nofollow">http://iot-playground.com/build</a></p>

About This Instructable

17,342views

56favorites

License:

More by EasyIoT:ESP8266 Controlling 4 Relays ESP8266 Door/window Sensor With SMS Alarm ESP8266 $5 internet connected switch - improved 
Add instructable to: