Book Image

Raspberry Pi Home Automation with Arduino - Second Edition

By : Andrew K. Dennis
Book Image

Raspberry Pi Home Automation with Arduino - Second Edition

By: Andrew K. Dennis

Overview of this book

Table of Contents (16 chapters)
Raspberry Pi Home Automation with Arduino Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Temperature Storage – Setting Up a Database to Store Your Results
Index

Summary


In this chapter, we explored a number of ways to detect damp and flooding. You were introduced to using the humidity functionality of the AM2302. Using this information, we wrote the humidity values to the database we created in Chapter 4, Temperature Storage – Setting Up a Database to Store Your Results.

Next, we used the Cooking Hacks shield to turn an LED on and off. Following this, we examined how we could use the LED to alert us about a dampness problem by checking the values stored in the database once an hour.

After building this system, we considered reusing the relay functionality from Chapter 3, Central Air and Heating Thermostat. This would then allow us to switch a dehumidifier on and off as needed.

Following this, we looked at a method of testing for water. This involved using a water sensor and modifying our code to send the concerned data back from the Arduino. Finally, we discussed a number of ways we could create an alert system to notify us that flooding could be taking...