Turbidity sensors can be used in measurement of water quality in rivers and streams, wastewater and effluent measurements, sediment transport research and laboratory measurements. This arduino turbidity sensor have analog signal output modes which can be read via Arduino analog port.
The arduino turbidity sensor detects water quality by measuring level of turbidity. It is able to detect suspended particles in water by measuring the light transmittance and scattering rate which changes with the amount of total suspended solids (TSS) in water. As the TTS increases, the liquid turbidity level increases. It needs **turbidity calibration liquid to calibrate. The output voltage of each module is different. The module is affected by light and temperature.
**https://en.wikipedia.org/wiki/Turbidity
Operating Voltage: 5V DC
Measuring range: 0-1000 NTU
Output Analog Voltage: 0 – 4.5V (base on 5V MCU voltage)
**Please note that the top side of the probe is not waterproof !
This a pseudo sample code for analog signal reading.
int sensorValue = analogRead(A0); // read the input on analog pin 0 float voltage = sensorValue * (5.0 / 1024.0); // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V) Serial.println(voltage); // print out the value you read delay(500); int sensorValue = analogRead(A0); // read the input on analog pin 0 float voltage = sensorValue * (5.0 / 1024.0); // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V) Serial.println(voltage); // print out the value you read delay(500);
Note that the readings need to be calibrated accordingly.