O'Reilly logo

Smart Internet of Things Projects by Agus Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building your own decision system-based IoT

In this section, we build a simple decision system using fuzzy logic on Raspberry Pi. We use Python for implementation.

We build a system to monitor temperature and humidity in a room to decide if the environment is comfortable or not. If the environment is not comfortable, then we turn on a cooler machine.

The following is our design:

Building your own decision system-based IoT

To sense temperature and humidity, we use the DHT22 module. We already learned about this module in Chapter 1, Make Your IoT Project Smart. A relay module is used to connect our Raspberry Pi to a cooler machine.

Let's start to build our system.

Wiring

We use DHT22 and relay modules ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required