TDS Probe is not functioning

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/Voltage
VoltageVoltage - 255.86VoltageVoltage + 857.39Voltage)*0.5; //Convert voltage value to TDS value

Serial.print("TDS Value = "); 
Serial.print(tdsValue);
Serial.println(" ppm");
delay(1000);

}Preformatted text

Welcome to the Arduino forum. Please include a link to a data sheet for the sensor.

Also, please serial.print(sensor Value); immediately AFTER reading the value. what do you get?

One TDS example:
Arduino with TDS Sensor (Water Quality Sensor) | Random Nerd Tutorials

Two TDS example:
TDS Sensor & Arduino Interfacing for Water Quality Monitoring (how2electronics.com)

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.

This would not compile as such, what is this sensorValue5 (with 5 at the end)? Might make more sense once you paste the code using code tags.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.