> The Internet of Things (IoT) is a system of interrelated computing devices, mechanical and digital machines, objects, animals or people that are provided with unique identifiers and the ability to transfer data over a network without requiring human-to-human or human-to-computer interaction.
> -- _by [iotagenda](https://internetofthingsagenda.techtarget.com/definition/Internet-of-Things-IoT)_
## The Thing
* is physical device
* provides unique identifier
* contains control unit
* contains sensors and actuators
* can communicate
## Sense-Think-Act Cycle
![Sense Think Act Cycle](images/sense-think-act.png)
## Microcontroller vs Microprocessor
![Raspberry Pi](images/pi-plug-in.gif)
![Arduino UNO](images/arduino.png)
![BBC Micro:bit](images/microbit.png)
![ESP32](images/esp32.png)
![ESP32 Block Diagram](images/esp32.block.diagram.svg)
* notes:
* https://en.wikipedia.org/wiki/ESP32
[![Micropython](images/micropython.png)](http://micropython.org)
## Sensor
Converts other form of energy into electrical energy
## Actuator
Converts electrical energy into other form of energy
## Components of Smart Waste Bin
* level sensor
* flame sensor
* temperature and humidity
* (lid) opening sensor
* communication module
* moisture sensor
* localization sensor
* state actuators
![Design is the Art of Simplicity](images/design.is.the.art.of.simplicity.jpg)
![KISS](images/kiss.jpg)
notes:
* http://www.anwarbosbool.com/2012/06/kiss-principle/
![State Machine of Turnstile](images/state.machine-turnstile.jpg)