Measuring the level of alcohol with a sensor