Smart Hotel & Home Monitoring System with Cloud‑Based Automated Controls
Experience a secure, cloud‑connected solution that monitors and automates every critical component of your hotel or smart home. Control devices from any Android device, receive real‑time alerts, and automate operations based on configurable rules.
Overview
The system connects sensors and actuators to the cloud via Arduino and Raspberry Pi, providing a unified dashboard accessible through a native Android app. Key features include:
- Real‑time monitoring of parking, temperature, and water levels
- Automated control of motors and gates
- Configurable email alerts for critical events
- Cross‑platform compatibility and secure data storage
Demo Highlights
- Parking – LDR sensors detect vehicle presence and update the UI instantly.
- Temperature – LM35 sensor feeds live temperature readings.
- Water Level – Ultrasonic sensor monitors reservoir levels.
- Motor & Gate Control – Small brushless DC motors toggle via cloud commands.
How to Set Up the Prototype
The setup is divided into four main stages: cloud configuration, Arduino programming, Raspberry Pi deployment, and Android app integration.
1. Configure Your ARTIK Cloud Account
- Sign up at ARTIK Cloud.
- Navigate to Device Types → New Device Type. Enter a display name (e.g., “hotel‑testing”) and a unique identifier.
- From the Manifest section, add fields:
- water_value (String)
- parking_value (String)
- temperature_value (String)
- state_motor (Boolean)
- state_gate (Boolean)
- Define actions:
motor_on,motor_off,gate_on,gate_off. - Activate the manifest and create a new application. Set authorization to Client Credentials, Auth Code, Implicit and use
https://localhost:8000/acdemo/index.phpas the redirect URL. - Grant Read permissions and capture the Client ID and Client Secret.
- In the Devices section, connect a new device using the name created earlier. Generate a Device Token and note the Device ID and Device Token.
- Optionally add a rule (e.g., email notification when
motor_onis triggered).
2. Set Up the Arduino
Connect the following sensors and actuators:
- LDR for parking detection
- LM35 for temperature
- Ultrasonic sensor for water level
- Brushless DC motors for gate and motor control (use a driver circuit if necessary)
Upload the provided Arduino sketch (adjust pin assignments). The sketch publishes sensor values and listens for cloud commands.
3. Deploy on Raspberry Pi
Install Node.js and run the cloud‑bridge server.
sudo apt-get update
sudo apt-get install node
mkdir ~/cloudlive
cd ~/cloudlive
wget https://raw.githubusercontent.com/Anas-siddiqui/cloudlive/master/server.js
nano server.js
# Replace device_id and device_token with your credentials
sudo node server.js
The server reads serial data from the Arduino, forwards it to ARTIK Cloud, and processes incoming commands.
4. Configure the Android Application
Clone the Android repo, then edit the following files with your credentials:
MainActivity.java– insert Client IDArtikCloudSession.java– insert Client ID and Device IDmy_activity.java– insert KEY_ACCESS_TOKEN
Build and install the APK. On first launch, log in with the same ARTIK Cloud account. The app will display live sensor data and allow manual control.
Future Enhancements
Additional modules such as HVAC control, smart lighting, and security cameras can be integrated. The cloud architecture ensures the system remains cross‑platform and scalable.
Source
Manufacturing process
- Why Cloud Mastery Is the Only Path Forward in 2017
- Accurate Temperature Monitoring in a Server Closet with Raspberry Pi
- Raspberry Pi Home Security System: PIR Motion Detection + Camera Email Alerts
- K30 CO2 Sensor: Real‑Time Indoor Air Quality Monitoring
- Monitor Your Home Temperature Anywhere with Arduino Cloud Integration
- Real‑Time Forest Fire Monitoring System with SMS Alerts
- Real‑Time Water Quality Monitoring System with Arduino & GPRS/GPS
- Revolutionize Dairy Management with IoT-Enabled Milk Level Monitoring
- Cloud Monitoring: Remote Control System for Real-Time Asset Management
- Integrating Equipment Monitoring with Asset Management Software: Boost Efficiency & Accuracy