1. An intelligent flushing system comprising: a) an odor sensor embedded in a toilet or toilet seat for detection of excrement; b) one or more cameras to monitor the optical conditions and light intensities in a plumbing product, as well detect visual images of litter, liquid and solid wastes; c) a protective lens to prevent contaminated toilet fluid from blotting and staining the associated camera, and a nozzle to cleanse the lens by emitting a pressurized jet; d) a control unit for processing real-time odor sensor signals and camera captured images to determine a need for flush, select a flushing procedure and activate a flush mechanism; e) valves for performance of flush procedures and protective lens cleansing in response to commands of a control unit; f) a network environment to receive alerts and access data between different control units and information systems, as well as, building management and other parties.