Smart Water Motor Projects for Kids


This project is about how we can solve the daily problem of wasting water due to overflowing of tanks and wasting of water using this module we can save a lot of water wasted daily.

In this smart water motor whenever the tank has water at a certain level will turn off automatically and whenever the water in the tank is less than the minimum level the motor will turn on automatically.

Hardware required 

  • Arduino Uno R3
  • Resistor
  • Jumper Wires
  • Ultrasonic Sensor
  • Breadboard
  • DC Motor
  • Diode
  • NPN Transistor
  • 9v Battery

Schematic Diagram

Fig 1.  Circuit Diagram

Arduino Code :

long duration, cm, inches;
void setup() {
  Serial.begin (9600);
void loop()
  pinMode(9, OUTPUT);
  digitalWrite(9, LOW);
  digitalWrite(9, HIGH);
  digitalWrite(9, LOW);
  // Read the signal from the sensor:
  pinMode(9, INPUT);
  duration = pulseIn(9, HIGH);
  // convert the time into a distance
  cm = (duration/2) / 29.1;
  inches = (duration/2) / 74; 
  if(inches > 57){			//tank size 5 feet = 60 inch,
    digitalWrite(8, HIGH);	// start if 57 inch empty
  }else if(inches < 5)		// stop if 5 inch to fill
    digitalWrite(8, LOW);
  Serial.print("in, ");


  1. Connections should be done properly.
  2. Arduino is case Sensitive so code accordingly.
  3. Give different and appropriate colors to the wires.
  4. Use resistors for sensors and LCDs.

Do you have questions regarding our STEM program?

Contact us anytime.

Take your first step into the magical world of coding for kids


More Posts

Send Us A Message

Coding For kids

Our courses which are tailored for grades 1 to 12, and our hands-on curriculum seamlessly integrates, preparing students for challenges and inspiring the next generation.


If you are a school searching for a cutting-edge makerspace solution that goes beyond conventional education, look no further. Partner with Makers’ Muse to unlock a world of innovation and transformative learning experiences for your students. 

Coding Toys

Discover a revolutionary coding journey for students with our cutting-edge educational toys. Partner with us to unlock innovative learning experiences that transcend traditional education.

Leave a Reply