Why not just have it hand operated? If you're going to sanitize your hands directly after pumping it, what's the big deal?
I despise the hand operated ones now. Same with mechanical faucets in a public bathroom. I don’t want to turn it off once my hands are clean...
It's weird to see automatic soap dispensers but manual "hand pump" paper towel dispensers.
Throw a battery in it, hell, just throw a chip in it.
In most cases (Most cases) analog Trumps digital.