Sanitizer dispenser code help

Yes, Got it,
you mean defining the pins, good practice indeed

Friends
Request you all to help me by sharing a code for automatic hand sanitizer based on ultrasonic sensor,5v relay, 5 v DC pump and Arduino-Nano

Hi
Is it possible for me to have the complete code of the program and
if I want to use the FC-51 ir module, what will be the code changes?
I had exactly the same problem.

brentradford:
Here is the full Code hope this would work fine

digitalWrite(relay1,LOW);

Oops.

Please remember to use code tags when posting code