Lesson 3
Creating a sensor to determine the electrical conductivity of water
In this lesson students:
- create a water conductivity sensor
- assemble a sensor connection diagram
- connect sensors to the board
- write a program to display
Assembly instructions
Let’s create a sensor to determine the electrical conductivity of water





4 | Cut the stir stick at the 13cm mark




















You can start from the listener level and suggest connecting sensors to the board without a ready-made template
We connect the sensor to the Arduino board
- one contact, using a 10K resistor, is connected to the negative GND
- We also connect this contact to the analog pin
- connect the second contact to positive +5V

It is also necessary to write a program to display data from sensors
You must use a port monitor to output data
void setup() {
Serial.begin( 9600 );
pinMode( A0, INPUT );
}
void loop() {
ecMeterReading = analogRead( A0 );
ecMeterVoltage = ecMeterReading * 5.0;
ecMeterVoltage = ecMeterVoltage / 1024;
delay(250);
Serial.print( ecMeterVoltage , 4 );
Serial.print( "," );
Serial.println();
}
