I recently handle a part of my team project which is hand sanitizer part came up with the idea of using a raspberry pi to power and control the hand sanitizer system. It's nothing large scale, but I want it to automatically spray out to the hand.
So far I have a raspberry pi 4, and mini submersible water pump
But my question is how are they supposed to connect to my pi? Do they connect to it via wires to the breadboard? Do I buys ones with a USB end to connect to my pi? I've read that the pump should be 5V. Can I connect to my pi? Do they have to specifically be for Rpi, or can I use any 5Volt sensors or pumps?