Cpp code for running a servo motor in the Arduino IDE
The system automates medicine dispensing by detecting a user’s hand via an IR sensor. When the sensor detects the hand, it signals a servo motor to rotate and dispense the medicine.
Open this file in Arduino IDE, this code is built for Arduino UNO, connect the specified elements in the code & use any old medicines to test the working of the IoT device