in this arduino code you can use two ultrasonic sensor to detect the presence of incoming and outgoing person and able to control the sanitizer pump on off automaticaly according to the smart logic of this arduino program to sense and control the pump when ever any buddy enters the room and stop the pump when ever any buddy comes out of the room .