Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino Nano-Based Environmental Monitoring System with Water Flow, Temperature, Humidity, and Sound Sensors

Image of Arduino Nano-Based Environmental Monitoring System with Water Flow, Temperature, Humidity, and Sound Sensors

Circuit Documentation

Summary

This circuit involves an Arduino Nano microcontroller interfacing with several sensors: a Water Flow Rate Sensor (YF-S401), a KY-015 DHT11 Temperature-Humidity sensor module, a DS18B20 temperature sensor, and a Sound Sensor. The Arduino Nano reads data from these sensors and processes it according to the provided code.

Component List

Arduino Nano

  • Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
  • Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK

Water Flow Rate Sensor YF-S401

  • Description: A sensor used to measure the flow rate of water.
  • Pins: GND negative, IN positive, OUT signal output

KY-015 DHT11 Temperature-Humidity Sensor Module

  • Description: A sensor module used to measure temperature and humidity.
  • Pins: VCC, GND, DOUT

DS18B20

  • Description: A digital temperature sensor.
  • Pins: signal, GND, vcc

Sound Sensor

  • Description: A sensor used to detect sound levels.
  • Pins: 5V +, OUT, GND

Wiring Details

Arduino Nano

  • 5V connected to:

    • Water Flow Rate Sensor YF-S401 (IN positive)
    • Sound Sensor (5V +)
    • DS18B20 (vcc)
    • KY-015 DHT11 Temperature-Humidity Sensor Module (VCC)
  • GND connected to:

    • Water Flow Rate Sensor YF-S401 (GND negative)
    • Sound Sensor (GND)
    • DS18B20 (GND)
    • KY-015 DHT11 Temperature-Humidity Sensor Module (GND)
  • D2 connected to:

    • Water Flow Rate Sensor YF-S401 (OUT signal output)
  • D3 connected to:

    • KY-015 DHT11 Temperature-Humidity Sensor Module (DOUT)
  • D4 connected to:

    • DS18B20 (signal)
  • A0 connected to:

    • Sound Sensor (OUT)

Water Flow Rate Sensor YF-S401

  • IN positive connected to:

    • Arduino Nano (5V)
  • GND negative connected to:

    • Arduino Nano (GND)
  • OUT signal output connected to:

    • Arduino Nano (D2)

KY-015 DHT11 Temperature-Humidity Sensor Module

  • VCC connected to:

    • Arduino Nano (5V)
  • GND connected to:

    • Arduino Nano (GND)
  • DOUT connected to:

    • Arduino Nano (D3)

DS18B20

  • vcc connected to:

    • Arduino Nano (5V)
  • GND connected to:

    • Arduino Nano (GND)
  • signal connected to:

    • Arduino Nano (D4)

Sound Sensor

  • 5V + connected to:

    • Arduino Nano (5V)
  • GND connected to:

    • Arduino Nano (GND)
  • OUT connected to:

    • Arduino Nano (A0)

Code Documentation

Arduino Nano Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino Nano. The setup() function is where you initialize your sensors and other components, and the loop() function is where you continuously read data from the sensors and process it.