A system and method for the dispensing of medication in the form of pills and also to monitor health parameters is disclosed. The system comprises a modular system having a main control module; a plurality of pill dispensing modules in communication with the main control module; and optionally sensors to measure health parameters in communication with the main control module. The main control module can store information and also can communicate information over a communications network.