Patent attributes
A fluid dispensing device and method for controlling the device are provided. The device includes a housing defining a fluid outlet. A valve controls the flow of fluid to the outlet. A sensor is configured to detect an object outside of and proximate to the housing. A solenoid is configured to move the valve between an open position and a closed position. A controller is configured to receive the output signal of the sensor, determine a characteristic of noise in the output signal such as a level of noise; adjust at least one of a sampling rate of the output signal and an amount of filtering of the output signal responsive to the characteristic of noise in the output signal, and transmit a control signal to the solenoid responsive to the output signal.