How the pill cap works is that there is a circular insert for a magnet on the exterior of the cap and there is an interior magnet to counteract this magnet. When the magnet is placed it opens up a hatch where the user will have to shake the pill into the cylinder that the hatch opens. The top of the cylinder has a lid that the user would have to rotate then the pill is taken out. Once it is taken out, a sensor is activated and starts the twenty-four hour timer in which case it will glow green at the LED indicator on the top of the cap. Once the twenty-four hour timer goes off, it will turn red and then sound an alarm until another pill is sensed to have been taken.