Sensor-activated operation to avoid the spread of germs