TS-300B Arduino Turbidity Sensor

TS-300B | High Quality Arduino Turbidity Sensor

TS-300B is a High Quality Turbidity Sensor with analog and digital interface for Arduino. This is the low cost Arduino Turbidity Sensor DIY Projects.

The turbidity of water refers to the degree of turbidity caused by suspended matter such as sediment, clay, organic matter, plankton and microorganisms contained in water. Industrial grade turbidity sensors or turbidimeters are expensive and not costly in electronics design; therefore, we have chosen a turbidity sensor that is widely used in household appliances washing machines and dishwashers.

Turbidity Sensor working Principle

The sensor uses the optical principle to comprehensively determine the turbidity by the transmittance and scattering rate in the solution. Inside the sensor is an infrared pair tube. When light passes through a certain amount of water, the amount of light transmitted depends on the degree of contamination of the water. The dirtier the water, the less light is transmitted. The light receiving end converts the transmitted light intensity into a corresponding current magnitude, and the transmitted light is large, and the current is large, and the transmitted light is small, and the current is small.
The turbidity sensor module converts the current signal output by the sensor into a voltage signal, and performs AD conversion data processing by the single chip microcomputer. 
TS-300B Arduino Turbidity Sensor

Where to Buy?

This Module is available with and without amplifire circuit in many online stores. Its price varies, but you can get only sensor for approximately $2.9 in most stores.

Check Price on Aliexpress | Banggood | Amazon.com |Amazon.in

My personal favrate for this product is Aliexpress  Low Price + Wolrdwide Delivery [Select register shipping methods]


The module has an analog and digital output interface. The analog quantity can be sampled by the microcontroller A/D converter to know the current water contamination. The digital quantity can be adjusted by the potentiometer on the module. When the turbidity reaches the set threshold, the D1 indicator will be illuminated, the sensor module output will change from high level to low level, and the microcontroller will monitor the level change.

Determine whether the turbidity of the water exceeds the standard, thus alerting or linking other equipment. The module is low in price, convenient to use, high in measurement accuracy, and can be used for measuring the degree of water pollution of washing machines, dishwashers, etc.; it can also be used for industrial site control, environmental sewage collection and other occasions requiring turbidity detection and control.


  • Operating voltage: 5.00V DC
  • Working current: 40mA (MAX)
  • Response time: <500ms
  • Insulation resistance: 100MΩ (Min)
  • Output mode: analog output: 0~4.5V; digital output: high/low level signal (can adjust the potentiometer to select the corresponding threshold)
  • Operating temperature: -20 ° C ~ 90 ° C
  • Module size: 38.6mm*22.1mm
  • Sensor Interface: XH2.54 connector
  • Ratio Range (NTU): 0~1000±30
  • Infrared Emitting Diode: 940nm (Peak emission wavelength)
  • Photo Transistor: 880nm (Peak emission wavelength)


  • Washing machines,
  • Dishwashers, 
  • industrial site control,
  • environmental sewage collection
  • Water quality monitoring using IOT 
  • Oil quality monitoring 


  • Simple and convenient to use
  • Low Cost
  • Digital and analog output Mode


TS-300B Arduino Turbidity Sensor connection pinout circuit schematic
Board Pin NoSensor/Board PinFunction
3A0Analog output Pin (0~4.5V)
4D0Digital Outputt  (High/Low)

Turbidity Sensor Arduino Connection Diagram

To interface with TS-300B sensor with Arduino, you need to connect to its 3-pin by using jumper wire to arduino board as given in below table.

TS-300B Arduino Turbidity Sensor connection
Pin NoSensor PinArduino Pin
1VCCArduino 5V
2GNDArduino GND
3A0*Arduino A0 (Analog output mode)
4D0**Arduino D2 ( Digital output mode )

* A0 pin of sensor is connected to Arduino analog input pin : Analog output voltage 0~4.5V [ Analog output mode ] **D0 pin of sensor is connected to Arduino Digital input pin : Digital output High or Low [ Digital output mode ] An Arduino code is available to test the module in both cases.

The above schematic of the turbidity sensor is applicable to Arduino Uno connection. In the same way, you can connect this TS-300B module to other Arduino board such as Arduino Mega and Arduino Nano.

Arduino Code [ Analog output mode ]

Copy to Clipboard

Arduino Code [ Digital output mode]

Select a specific turbidity contrast solution and adjust the potentiometer knob to the position where the D1 indicator light is just lit (ie, the threshold of high and low levels) to complete the threshold setting. The DO port of the sensor module is connected to the I/O port of the MCU for output signal judgment or connected to an external drive circuit to drive other devices.

Copy to Clipboard


This is a super cool water quality sensor module that enable you to monitor the turbudity of any liquid using Arduino, without spending too much budget..

*sometimes it can be tricky while detecting the Forward gesture.

TS-300B | High Quality Arduino Turbidity Sensor 2

More great Projects using Turbidity Sensor


TS-300B | High Quality Arduino Turbidity Sensor 3
Posted by
February 20th, 2020

by InnovatorsGuru



Subscribe to our free newsletter.

Related Posts