Smart Medication Management: Enhancing Medication Adherence with an IoT-Based Pill Dispenser and Smart Cup