A device for monitoring the medication of a patient, said device comprising: a pill box ; a compartment including a compartment opening for accommodating the pill box , said pill box being partitioned in sections for storing medication corresponding to different times of the day, (said sections ranging in number from 1), each respective section intended to store medication having a bottom for supporting a label; a closure for closing and opening said pill box such that said medication may be placed in a respective section and removed from a respective section, and without accidentally falling out while storing said medication; said device further comprising a pair of light emitters and light receivers for each respective section of said pill box for detecting medication in each respective section intended to store medication, each of said respective light emitters being configured for emitting light substantially parallel with said bottom through each respective section , and each of said respective light receivers being configured to receive light emitted from said respective light emitters, and transmitted through each respective section ; an array of light emitters and an array of light receivers for each respective section of said pill box , the arrays of light receivers located at the bottom surface of said device and are arranged along the length direction of the bottom surface ; said device further comprising a processing unit for receiving respective output signals of said respective light receivers, and transmitting a status signal for each respective section of said pill box via a communications module to a monitor for presenting a storage status of said medicine being stored in each respective section of said pill box such that the medication of said patient may be monitored. a pill box ; a compartment including a compartment opening for accommodating the pill box , said pill box being partitioned in sections for storing medication corresponding to different times of the day, (said sections ranging in number from 1), each respective section intended to store medication having a bottom for supporting a label; a closure for closing and opening said pill box such that said medication may be placed in a respective section and removed from a respective section, and without accidentally falling out while storing said medication; said device further comprising a pair of light emitters and light receivers for each respective section of said pill box for detecting medication in each respective section intended to store medication, each of said respective light emitters being configured for emitting light substantially parallel with said bottom through each respective section , and each of said respective light receivers being configured to receive light emitted from said respective light emitters, and transmitted through each respective section ; an array of light emitters and an array of light receivers for each respective section of said pill box , the arrays of light receivers located at the bottom surface of said device and are arranged along the length direction of the bottom surface ; said device further comprising a processing unit for receiving respective output signals of said respective light receivers, and transmitting a status signal for each respective section of said pill box via a communications module to a monitor for presenting a storage status of said medicine being stored in each respective section of said pill box such that the medication of said patient may be monitored. <EOS>