| 1 | End devices (smart things) | Sensors and actuators that interact with the physical world. Sensors create data (temperature, motion); actuators perform actions (switch a pump, open a valve). Without them there is nothing to measure or control. | ESP32 + DHT22 sensor, smart bulb, smart plug |
| 2 | Gateway devices | The bridge between local devices and the Internet. End devices are low-power and use short-range protocols (Bluetooth, Zigbee, LoRa) that cannot reach the cloud directly. The gateway performs protocol translation, fog computing(filter/aggregate/summarize locally to save bandwidth), and security (encryption, access control). | Raspberry Pi running an MQTT broker, Zigbee hub (e.g., Philips Hue Bridge), LoRaWAN gateway |
| 3 | Cloud | Scalable, centralized storage and management of data from a huge number of devices — more than any local device could store or process. | AWS IoT, Azure IoT Hub, ThingSpeak |
| 4 | Analytics | The brain that turns raw data into insight: descriptive (what happened?), predictive (what will happen?), prescriptive (what should we do?). Raw numbers alone have no value. | ML model predicting motor failure from vibration; ThingSpeak MATLAB analysis |
| 5 | User interface | Delivers value to people — lets users view data, receive alerts, and send control commands. | Grafana / ThingSpeak dashboard, mobile app, ESP32 web page, SMS/e-mail alert |