I am measuring the TDS of different concentrations of copper sulfate. When I placed my probe in the each solutions I am getting the same value (454.65ppm). Here is the code:
float tdsValue = 0;
float Voltage = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
//Code for the TDS Value
int sensorValue = analogRead(A5);
Voltage = sensorValue5/1024.0; //Convert analog reading to Voltage
tdsValue=(133.42/VoltageVoltageVoltage - 255.86VoltageVoltage + 857.39Voltage)*0.5; //Convert voltage value to TDS value
Serial.print("TDS Value = ");
Serial.print(tdsValue);
Serial.println(" ppm");
delay(1000);
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.