Datasheet

Table Of Contents
6
Serial.begin(9600);}// the loop routine runs over and over again forever:void
loop() { // read the input on analog pin 0: int sensorValue =
analogRead(A0); // print out the value you read:
Serial.println(sensorValue); delay(100); // delay in between reads
for stability}
Test Result
In the experiment, we slide the switch to A end, then read the analog value shown
below. The analog value 0-1023 corresponds to voltage 0-5V.
We can work out the voltage of sensors signal end by analog value, and then get
the waters turbidity degree through electrical characteristic curve.