waterTemp = (float)raw_temp / 16; // Convert temperature raw value into degree Celsius (temp in °C = raw/16) float rawEc = analogRead(tds_sensor) * aref / 1024.0; // read the analog value more stable ...