A method of controlling water flow in an automatic faucet, comprising: providing a faucet including a housing forming partially an internal barrel (17, 17A) and a faucet head (16, 16A), the faucet including at least one water inlet conduit extending into said internal barrel, a spout and a water outlet for delivering water from the spout; a faucet crown (34, 34A) removably mounted on said faucet head; a valve module (150, 150A) including an electromagnetic actuator for controlling the water flow from the water outlet; a sensor module constructed to provide sensor data influenced by a user; a control module constructed to receive said sensor data from said sensor module; and said internal barrel and said faucet head being constructed and arranged to releasably enclose and retain said valve module, said sensor module and said control module; wherein the control module executes a sensing algorithm that keeps track of noise signal level and dynamically adapts a signal threshold, said sensing algorithm tracking signal trend to determine presence of a user; and controls opening and closing of said valve by providing signals to said electromagnetic actuator. providing a faucet including a housing forming partially an internal barrel (17, 17A) and a faucet head (16, 16A), the faucet including at least one water inlet conduit extending into said internal barrel, a spout and a water outlet for delivering water from the spout; a faucet crown (34, 34A) removably mounted on said faucet head; a valve module (150, 150A) including an electromagnetic actuator for controlling the water flow from the water outlet; a sensor module constructed to provide sensor data influenced by a user; a control module constructed to receive said sensor data from said sensor module; and said internal barrel and said faucet head being constructed and arranged to releasably enclose and retain said valve module, said sensor module and said control module; wherein the control module executes a sensing algorithm that keeps track of noise signal level and dynamically adapts a signal threshold, said sensing algorithm tracking signal trend to determine presence of a user; and a housing forming partially an internal barrel (17, 17A) and a faucet head (16, 16A), the faucet including at least one water inlet conduit extending into said internal barrel, a spout and a water outlet for delivering water from the spout; a faucet crown (34, 34A) removably mounted on said faucet head; a valve module (150, 150A) including an electromagnetic actuator for controlling the water flow from the water outlet; a sensor module constructed to provide sensor data influenced by a user; a control module constructed to receive said sensor data from said sensor module; and said internal barrel and said faucet head being constructed and arranged to releasably enclose and retain said valve module, said sensor module and said control module; wherein the control module executes a sensing algorithm that keeps track of noise signal level and dynamically adapts a signal threshold, said sensing algorithm tracking signal trend to determine presence of a user; and controls opening and closing of said valve by providing signals to said electromagnetic actuator.