Smart box for medical cannabis storage