gary_feesher
Newbie level 6
I am testing a simple two-wire conductivity sensor from a Chinese supplier that didn't provide much information or data sheet.
I wired it up to an Arduino, and tested different resistor values with the sensor in some tap water.
I am trying to understand how the different resistor values are affecting my output? For example, no resistor was showing higher outputs than the 330k resistor.
Thanks for any support!
I wired it up to an Arduino, and tested different resistor values with the sensor in some tap water.
I am trying to understand how the different resistor values are affecting my output? For example, no resistor was showing higher outputs than the 330k resistor.
Thanks for any support!
Code:
int condVal;
int i=0;
void setup() {
Serial.begin(9600); //establishes a connection to the arduino
}
void loop() { //everything between these curly braces will loop
condVal = analogRead(A0);
float voltage = condVal*(5.0/1023.0);
Serial.println(voltage);
delay(1000); //delay before looping
}