A smart monitoring device for automatically monitoring the injection of medicines such as insulin which can be retrofitted to a conventional insulin pen in which the device has an optical motion sensor for detecting actuation of the injection pen together with an optional accelerometer sensor, medicament temperature and mounting sensors, the monitoring device being communicable with external smart devices such as smartphones.