Connecting 12V pump, 5V relay and the water level detection sensor

Now we connect the water level sensor, the relay and the water pump to the Arduino Uno board. Each element must be connected according to the following scheme:

Water level sensor

Water pump

Relay

  • VCC → 5V (Arduino).
  • OUT → A0 (Arduino).
  • GND → GND (Arduino).

  • (-) → 12V Ac Adapter (-).
  • (+) → C (Relay).

    C=Common terminal.

  • (-) → GND (Arduino).
  • (+) → 5V (Arduino).
  • S → A5 (Arduino).

 

wirng-2