Answer:
Automatic soap dispensers use infrared sensors to detect the presence of hands. When you place your hands under the sensor, it triggers the dispenser to release an appropriate amount of soap.