An automatic soap dispenser works with the help of the dispensing mechanism present in it. Most common automated dispensers use infrared motion sensors. We have given more information about it in our buying guide.