Methods, systems and apparatuses, including computer programs encoded on computer storage media, are provided for assisting users with adherence to a medication regimen. An attachable device includes a sensor module releasably attached to an adapter, which is in turn attached to a medication container using a connector. The sensor module can be removed from the adapter to change an included battery without removing the adapter from the medication container. The sensor module is in communication with a user device, such as a smart phone. A user can use an app on the user device to create a medicine regimen, or schedule, and send the schedule to the sensor module. The user can also set notification preferences on the user device to be sent to the sensor module. The sensor module includes audio and/or visual transducers that notify the user to take the medication at the scheduled times. The sensor module further includes one or more buttons that are pressed when a user opens the medication container. The button(s) are configured so the action of the user required to open the container also presses at least one button. The sensor module records the actions of the user, including when the medication container is opened, when a dose of the medication is missed, and when the user presses a mood indication button. The user actions can be transmitted to the user device, which can then transmit the recorded actions to a server. The sensor module may be configured to attempt communication with the user device on a periodic basis to conserve battery life.