This document proposes an IoT-based society automation system using a Green Task-Based Scheduling (GTBS) protocol. The system uses wireless sensor networks to monitor and control gate security and home appliances. Sensors collect data on factors like fire, gas leaks, and intrusions. The GTBS protocol efficiently schedules sensor tasks to reduce redundant data transmission and conserve energy. The system aims to automate residential societies for improved security and convenience with minimal human intervention.