All Together Now

We’re nearing the home stretch. Your hardware should look like the setup pictured in Figure 4, An assembled water level notifier. All that remains is mounting the flex resistor securely and safely in place so that its flexion is accurately detected and not impeded by any obstacles.

The base where the two wires attach to the exposed flex resistor leads needs to be firmly stabilized so that when the water level rises and pushes the bobber upward, the base does not pivot at its fulcrum. If it does pivot, the flex resistor will remain straight and the running Arduino sketch will fail to send the appropriate alert notification. Keep the base stabilized and prevent it from pivoting.

Try using hot glue, heat shrink tubing, or ...

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.