Building the Solution

Before the Water Level Notifier can start broadcasting alerts, we need to complete the following tasks:

  1. Attach wires and a resistor to the exposed sensor leads on one end of the flex resistor and the fishing bobber on its other end.

  2. Connect the leads of the flex sensor to an analog pin of an Arduino.

  3. Write a program (i.e., sketch) for the Arduino that will monitor changes in the flex sensor readings. It should trigger an event when a large-enough deviation from the initial value is detected.

  4. Attach an Ethernet shield to the Arduino so that the sketch can communicate with a web server running PHP.

  5. Write a PHP script that will capture incoming values from the Arduino. When the water level has changed, it should ...

Get Programming Your Home now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.