I hope you are all doing well and staying safe now. I will be explaining you about my prototype which I designed to wash hands safely. I made this project with limited resources. Those who are interested can remake this project, and if you like you can make some improvements too. I did not have a solenoid water valve with me, so I had to use the submersible water pump to demonstrate my project.
By having an automatic faucet, you do not have to touch the surface of the faucet after you wash your hands; you can wash your hands safely and prevent coronavirus disease. This prototype is effective and only costs around $10 to build. This would also help to prevent the waste of water as this is an automatic faucet.
*Note (Code section) : I have edited my code by adding a 2 second before the void loop( ) is completed to prevent the clicking of the relay module.
I have programmed my Arduino microcontroller to switch on the relay module when the ultrasonic sensor detects my hand within 10 cm. The submersible water pump is switched on along with the relay module and begins to pump water through the tube connected to it. The tube is led out of the plastic container and acts as a faucet.
If anyone has any questions, please feel free to comment below.