Water Quality Monitoring System
Intermediate20/6/2026- Author: IoTSpark Maker

Water Quality Monitoring System

Build a water quality monitoring system that measures temperature, TDS, pH, and turbidity, shows an alert status, and can be extended to send real-time data over MQTT. Suited for monitoring fish tank, hydroponic, or water tank quality, or as a reference monitoring model. Note: readings from consumer-grade sensors do not replace certified testing equipment or lab analysis.

ESP32IoTWater QualityMQTTArduino IDETDSpHDS18B20
7 steps9 components
← Back to project
Detailed guide

Part 1: Preparing Components and Safety Notes

Introduces the component list, each module's role, and safety notes for working with water and electronic circuits.

Updated 31/08/2026

Part 1: Preparing Components and Safety Notes

Before starting, gather all the components and understand each part's role in the system. This project uses an ESP32 as the central controller, water sensors as inputs, and LEDs/a buzzer as alert outputs.

1.1. Required Components

ComponentQtyRole
ESP32 DevKit V11Main control board, reads sensors and sends data.
Waterproof DS18B201Measures water temperature.
TDS Sensor (analog)1Measures total dissolved solids in water.
pH Sensor (analog)1Measures the water's acidity/alkalinity.
Turbidity Sensor1Measures relative turbidity.
4.7kΩ Resistor1Pulls up the DS18B20's DATA pin.
Green LED, red LED, buzzer1 setWater status alerts.
Dupont wires, breadboard, 5V power1 setWiring and test power supply.

1.2. Optional Extension Components

  • A 0.96-inch I2C OLED for local data display.
  • An IP65 waterproof enclosure for packaging the prototype.
  • An external ADS1115 ADC for more stable analog readings.
  • A stable 5V/3.3V power module for long-term deployment.

1.3. Safety Notes

  • Never let water touch the ESP32, breadboard, or power circuit.
  • Only submerge the sensor's probe end in water.
  • Never feed a 5V analog signal directly into an ESP32 ADC pin.
  • If a sensor's output exceeds 3.3V, use a voltage divider or a suitable ADC.
  • Always share a common GND between the ESP32 and every sensor module.

Remember: this is a reference monitoring system, not a certified drinking-water testing device.