Water Turbidity Measurement

Introduction

This experiment demonstrates how to measure water turbidity using a turbidity sensor with Arduino.

Turbidity Sensor

Components Needed

Circuit Setup

  1. Connect the turbidity sensor's output to an analog input pin on the Arduino.
  2. Connect VCC and GND to the Arduino's 5V and GND pins.

The turbidity sensor measures the cloudiness or haziness of the water by detecting the amount of light scattered by particles suspended in the water.

Water Turbidity Circuit Setup

Code for Water Turbidity Measurement

Upload the following code to your Arduino to measure turbidity:


const int turbidityPin = A0;

void setup() {
  Serial.begin(9600);
}

void loop() {
  int turbidityValue = analogRead(turbidityPin);
  Serial.print("Turbidity Value: ");
  Serial.println(turbidityValue);
  delay(1000);
}
            

Explanation

The turbidity sensor sends a signal proportional to the turbidity in the water. Higher values indicate more suspended particles, showing higher turbidity.

Troubleshooting