A method and apparatus for monitoring and/or managing adherence to a medication regimen that involves use of a sensor. Dispensing medicine from a container commonly involves pressure being applied to the container, which results in expansion of the container. In some embodiments, pressure is applied by a user through an aperture of the apparatus. In some embodiments, a processor monitors pressure sensor data from a pressure sensor that is physically coupled to the container and arranged such that activation of the pressure sensor indicates the container has expanded in response to the user applying pressure. A processor analyzes the pressure sensor data to determine whether medicine has been dispensed from the container. A computer system can compare the dispensed medication to a planned medication regimen to determine a state of compliance with the medication regimen.