A method of cleaning a surface using an automatic cleaning device may
include learning, by an automatic cleaning device, one or more cleaning
methods. Each cleaning method may be associated with a code corresponding
to a radio frequency identification tag positioned in a vicinity of a
surface to be cleaned. The method may also include receiving, by the
automatic cleaning device, a target code from a target radio frequency
identification tag positioned in a vicinity of a target surface to be
cleaned, determining the cleaning method associated with the target code
and applying the associated cleaning method to the target surface when
the target radio frequency identification tag is detected.