const int analogPin = A0; // Analog pin connected to the output of the EC sensor
const float voltageReference = 5.0; // Arduino Uno voltage reference
void setup() {
Serial.begin(9600);
}
void loop() {
// Read analog value from the EC sensor
int rawValue = analogRead(analogPin);
// Convert raw analog value to voltage
float voltage = (float)rawValue * voltageReference / 1023.0;
// Print voltage value to Serial Monitor
Serial.print("Voltage: ");
Serial.println(voltage);
delay(1000); // Adjust delay as needed
}