A fluid dispenser having a pump mechanism that, when activated, dispenses an allotment of fluid onto a user's hand. The fluid dispenser includes a sensor that senses a property of the user's hand, and a processor that determines, based on the property of the user's hand, whether the user's hand is wearing a glove.