The makers of the Mode smart cannabis device say it solves the dosing problem, using a high-res pressure sensor to determine how much a user is inhaling. Its prediction algorithm then determines how many micromilligrams a user is getting per puff based on the cartridge.