I built an automatic liquid dispenser using an arduino. Now I am planning to build one without an arduino. I am planning to use
1.) IR sensor (https://www.amazon.com/DAOKI-Infrar...d=1&keywords=IR+Sensors&qid=1592302302&sr=8-6).
This sensor outputs a low signal from out pin whenever an obstacle is detected.
2.) Small submersible dc motor pump (3-6volts 200mA).
(https://www.amazon.com/3V-6V-Submer...submersible+water+pump&qid=1592302828&sr=8-12)
3.) 555 Timer IC
4.) LM7805
5.) 4 alkaline 1.5V batteries in series
Please find attached circuit below.
The values of R & C that I plan on using are 100k & 10uf for 1 second delay (or a potentiometer and 10uf capacitor).
Also I plan on integrating a DC float switch (https://www.electronicscomp.com/water-level-sensor-float-switch-p43-india) in the tank. When the tank is empty, the motor should not run. When the tank is empty, there would be a connection between the two wires of the float switch. So I am thinking of connecting one end of the switch wire to positive terminal of motor (instead of +5v as seen in circuit below) and the other end of the wire to +5V.
Also, I was thinking if it would be possible to directly connect sesnor output directly to trigger pin of 555 without any transistors or resistors.
Request the people in this forum to let me know their opinions on this circuit.

1.) IR sensor (https://www.amazon.com/DAOKI-Infrar...d=1&keywords=IR+Sensors&qid=1592302302&sr=8-6).
This sensor outputs a low signal from out pin whenever an obstacle is detected.
2.) Small submersible dc motor pump (3-6volts 200mA).
(https://www.amazon.com/3V-6V-Submer...submersible+water+pump&qid=1592302828&sr=8-12)
3.) 555 Timer IC
4.) LM7805
5.) 4 alkaline 1.5V batteries in series
Please find attached circuit below.
The values of R & C that I plan on using are 100k & 10uf for 1 second delay (or a potentiometer and 10uf capacitor).
Also I plan on integrating a DC float switch (https://www.electronicscomp.com/water-level-sensor-float-switch-p43-india) in the tank. When the tank is empty, the motor should not run. When the tank is empty, there would be a connection between the two wires of the float switch. So I am thinking of connecting one end of the switch wire to positive terminal of motor (instead of +5v as seen in circuit below) and the other end of the wire to +5V.
Also, I was thinking if it would be possible to directly connect sesnor output directly to trigger pin of 555 without any transistors or resistors.
Request the people in this forum to let me know their opinions on this circuit.
