Smart Room Occupancy Tracker

Smart Room Occupancy Tracker

IoTReactNode.jsMySQLArduinoPIR Sensors
IoT2024

OVERVIEW

Smart Room Occupancy Tracker

The Smart Room Occupancy Tracker is an IoT project that combines hardware and software to monitor room occupancy, optimize energy consumption, and provide actionable insights. By integrating PIR sensors, a MySQL database, and a React-based web interface, the system enhances energy efficiency while offering a user-friendly way to view and analyze occupancy data.

KEY FEATURES

  • Real-Time Occupancy Detection: Utilized PIR sensors to count the number of people in a room, enabling accurate monitoring of occupancy levels.
  • Data Collection and Analysis: Sent occupancy data to a MySQL database, where it was analyzed to identify patterns and suggest strategies for improving light consumption.
  • Web Interface: Developed a React-based frontend to display occupancy trends and energy usage insights, with a Node.js backend handling API calls and database queries.
  • Energy Optimization: Leveraged occupancy data to automate lighting adjustments, reducing unnecessary energy usage.

TECHNOLOGIES USED

  • Hardware: PIR Motion Sensors and NodeMCU
  • Backend: Node.js for API development and database communication
  • Frontend: React for an interactive and responsive user interface
  • Database: MySQL for data storage and analysis
  • Programming Language: JavaScript (for both frontend and backend development) and C++ (for Arduino IDE)

CHALLENGES AND LEARNINGS

  • Sensor Accuracy: Ensuring reliable readings from PIR sensors in dynamic environments was a critical challenge, requiring calibration and noise filtering.
  • Database Integration: Setting up efficient database queries to handle real-time data updates and retrieval posed a learning opportunity in database management.
  • Frontend-Backend Communication: Designing a seamless interaction between the React frontend and the Node.js backend required robust API design and debugging.
  • Energy Consumption Analysis: Translating raw occupancy data into actionable energy-saving strategies highlighted the importance of data analysis and visualization.

OUTCOME

The system successfully tracked room occupancy and provided actionable insights to improve light usage, achieving measurable energy savings. The React interface allowed users to view detailed occupancy trends and energy reports, making the tool intuitive and practical for real-world applications.

This project demonstrated proficiency in IoT systems, full-stack development, and database integration. It showcased the ability to bridge hardware and software through sensors, APIs, and a modern web stack to create a meaningful solution for energy optimization.