A medicine box device includes a medicine box body and a processing unit, wherein the medicine box body is provided with a plurality of medicine accommodating grooves having a cover body, and the wall surface of the medicine accommodating groove is provided with at least one emitting element and At least one penetrating hole corresponding to the emitting element, and a hollow area for placing the processing unit inside the body of the medicine box relative to the positions of the medicine containing grooves, after which the processing unit can control the The transmitting element transmits an energy beam when there is no object in the medicine containing groove or is filled with objects and is received by the detection receiver of the processing unit to calculate an empty load integral amount and a full load integral amount Finally, the energy beam can be re-emitted through the inside of the medicine accommodating groove to calculate a judgment integral amount, and the medicine is judged by the no-load integral amount, the full-load integral amount and the judgment integral amount Whether the drug stock in the accommodating groove is nearly empty.一種藥盒裝置,係包含有一藥盒本體及一處理單元,其中該藥盒本體設置有數個具有蓋體之藥品容置凹槽,而該藥品容置凹槽之壁面設置有至少一個發射元件及至少一個對應於該發射元件之穿透孔,且相對於數個藥品容置凹槽之位置於該藥盒本體內部設置有一置放該處理單元之中空區域,之後,該處理單元能夠控制該發射元件於該藥品容置凹槽內部沒有物體或是內部裝滿物體狀態下進行發射能量束並由該處理單元之偵測接收器進行接收,以運算出一空載積分量及一滿載積分量,最後,能夠再發射能量束通過該藥品容置凹槽內部,以進行運算出一判斷積分量來,並在藉由該空載積分量、滿載積分量及判斷積分量,進行判斷出該藥品容置凹槽內的藥品存量是否已接近空載。