Of course when your project is a giant nose that mock-sneezes sanitizer into your hands ... the idea is to detect the presence of a hand underneath the dispenser with a simple IR reflective ...
However, over time, the alcohol in hand sanitizer can evaporate and make it less effective. But as long as the container is closed, you should be able to leave it in your car temporarily — here ...