Title of activity
- To test the Water Level Sensor
- The idea to detect water level is simply by the basic circuit loop where the water conductivity itself can be the connector of the circuit. Simply connect the 5V and GND to the water and another two rod (jumper) that will determine the level whether it is low or high. If the water is below than Low Level Rod, then the rod will be open circuit to that 5V and GND. If the High Level Rod is touch the water, then it will detect 5V. The rod will be connected to analog input of arduino that can read the voltage from the rod.Then the output of arduino will be connected to either solenoid to drain the water or water pump to refill the water into the tank of aquarium.
- To control the output must include another circuit because output cannot be driven by arduino. Arduino usually will inject 5V to the output pin then, a relay circuit will fetch the signal and act as a switch to turn on/off the output either solenoid or water pump.
Component List:
- Arduino UNO
- 12V Relay
- 2N2222 Transistor
- 1N4004 Diode
- 12Vdc adaptor
![]() |
| Shop that sell elctronics component |
After gather all the component, the circuit is constructed on the breadboard and run the program by arduino software.
![]() | |||
| Construct the circuit by the component in the breadboard | . |





