This document proposes a smart pillbox system that uses IoT technology to remind users when to take medication and dispense the correct pills to avoid confusion. The system uses a real-time clock to match the current time to scheduled medication times stored in the system. When time matches, a buzzer alerts the user and the correct pills are dispensed. The user then confirms how many pills were taken, and the system automatically orders more pills from the pharmacy when counts get low. The document outlines the system design and architecture, and explains how an ID3 algorithm is used to classify medication attributes like age, gender, name and schedule. The proposed smart pillbox is intended to improve medication safety and adherence for elderly users by automating