===== Sample Projects ===== No idea where to start?\\ \\ This page shows you a simple way to use the Keyestudio IoT Smart Home Kit in your system. 🏠✨ \\ This example demonstrates how you can automate a room using the Keyestudio IoT Smart Home Kit. The system handles entry, exit, lighting, and even reacts to environmental changes like water droplets. === Description === The system automates a smart room with the following features: - When entering the room, the user taps an RFID card or tag on the RFID sensor. The door opens for 2 seconds, the fan turns on, and the light switches on. RFID is needed so that only authorized users can enter the room or house. - When exiting, the user presses a button. The door opens for 2 seconds, then closes. - If the room is empty (no motion detected by the PIR motion sensor), the light and fan automatically turn off to save energy. - The water drop sensor is placed outside to detect rain and if water droplets are detected by the steam/water drop sensor and the window is open, the system closes the window and triggers the buzzer. If the window is already closed, the buzzer simply beeps as a warning. === Flow of Scenario === - **Entering the room:** - User taps the RFID card/tag on the RFID sensor. - The door opens for 2 seconds. - The fan and light turn on. - The door closes. - **Exiting the room:** - User presses the button. - The door opens for 2 seconds. - The door closes. - **Room empty:** - PIR motion sensor detects no motion. - The light and fan automatically turn off after a delay. - **Water droplets detected:** - Steam/water drop sensor detects water. - If the window is open: - The window closes. - The buzzer beeps as a warning. - If the window is already closed: - The buzzer simply beeps. === List of Components === - **Input Devices:** * RFID sensor * Button * PIR motion sensor * Steam/water drop sensor - **Processing Unit:** * ESP32 PLUS Development Board - **Output Devices:** * Servo motor (for door and window) * Fan (DC motor) * Light (Yellow LED) * Buzzer === Source Code === This example was done using Arduino IDE. You can find the Arduino code for this system here: [[https://drive.google.com/file/d/1NY1NoNDPdqI5OR-dzoGTPmY9owv3kibi/view?usp=sharing | samplecode]]